<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help with association/selections in datamodel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630680#M231475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you think, that if you will have table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,2,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,2,-&lt;/P&gt;&lt;P&gt;2,-,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your first problem will be solved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you told, you have more than one A for one B, but i can imagine, that for exmaple you have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,1,-&lt;/P&gt;&lt;P&gt;2,2,-&lt;/P&gt;&lt;P&gt;2,-,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in that case if you will have:&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,1,2&lt;/P&gt;&lt;P&gt;2,2,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem still should be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have this you may load first one part of this table:&lt;/P&gt;&lt;P&gt;B,A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then 2'nd:&lt;/P&gt;&lt;P&gt;B,C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact even having those 2 subtables loaded, your solution should work. But of course you may want to outerjoin those 2 subtables into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 12:46:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-28T12:46:57Z</dc:date>
    <item>
      <title>Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630678#M231473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem in creating a datamodel in qlikview that works as desired (based on a different relational data model). I will give two descriptions of the problem one "simple" that may be enough if that can be solved, and one more extensive in case anybody would suggest an altogether different approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Simple version: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three tables with fact-entities, let's call them A B C which are connected through a connection table containing three columns, one for each primary key of A,B and C. A and C always have a connection to B, whereas only in some cases they may also have a connection to each other. The problem is the following: If I have the following connection table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;B-key&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;A-key&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;C-key&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;(There may be several As and Cs per B so we can't have them all on one row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the desired behaviour to be: When I select for example all "A"s from last week, I want to be able to count the number of "C"s connected to them (through B). But the problem is that when I select a number of As, qlikview only selects the first of the rows in the connection table above, and even though the correct B is selected that way, through the B-column in the connection table, not all the rows for that B are selected, and hence not the Cs connected to that B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If I select a B, then all As and Cs are selected as expected/desired)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make it work like this so that all Cs connected to a B, are selected when I select an A connected to that B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Extended version: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The full story is more complex, but I think the rest is solved if the above problem can be solved. But if you have another suggestion or want the full story, here it goes: The initial data comes from a relational database which looks differently in two versions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version 1: &lt;/P&gt;&lt;P&gt;- All As have a foreign key to ONE B&lt;/P&gt;&lt;P&gt;- All Cs have a foreign key to ONE B&lt;/P&gt;&lt;P&gt;- There is an optional connection table also connecting several Cs to one A, but all need to be connected to the same B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version 2: &lt;/P&gt;&lt;P&gt;- All As have a foreign key to ONE B&lt;/P&gt;&lt;P&gt;- The C foreign key to B is removed&lt;/P&gt;&lt;P&gt;- The connection table is now 3-way and all Cs have a connection to the connection table, and there is at least one row in it for each C that connects it to one B (instead of the now removed direct foreign key)&lt;/P&gt;&lt;P&gt;- There may still be optional connections to As in the connection table&lt;/P&gt;&lt;P&gt;- Cs may now be connected to As belonging to different Bs than the Cs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to be able to count As, Bs and Cs, but also preferably if one selects any of them (A B or C), all the connected of the others should be selected (if I select a number of Cs, say from last week, the related As and Bs should be selected and counted etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As stated above, I think we have arrived at a model that handles the connections to a satisfactory degree, but the "simple version" of the problem above is the remaining problem - if I select an A or C in that version the corresponding As and Cs don't get selected but it stops at B (but it works as desired if I select a B, then all As and Cs are selected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 11:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630678#M231473</guid>
      <dc:creator />
      <dc:date>2014-05-28T11:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630679#M231474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have those datamodels in qvd? If it is possible please share, it will be easier to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 12:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630679#M231474</guid>
      <dc:creator />
      <dc:date>2014-05-28T12:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630680#M231475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you think, that if you will have table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,2,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,2,-&lt;/P&gt;&lt;P&gt;2,-,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your first problem will be solved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you told, you have more than one A for one B, but i can imagine, that for exmaple you have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,1,-&lt;/P&gt;&lt;P&gt;2,2,-&lt;/P&gt;&lt;P&gt;2,-,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in that case if you will have:&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,1,2&lt;/P&gt;&lt;P&gt;2,2,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem still should be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have this you may load first one part of this table:&lt;/P&gt;&lt;P&gt;B,A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then 2'nd:&lt;/P&gt;&lt;P&gt;B,C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact even having those 2 subtables loaded, your solution should work. But of course you may want to outerjoin those 2 subtables into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 12:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630680#M231475</guid>
      <dc:creator />
      <dc:date>2014-05-28T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630681#M231476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions, but I don't think that would work for a couple of reasons: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I can't just put As and Cs arbitrarily on the same row, since there is information in that as well, ie, a C can belong to an A or not, or just be connected to the B, so that information need to be preserved somehow as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I don't see that it would work fully even we disregard the above, for example in your example above: &lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,-,1&lt;/P&gt;&lt;P&gt;2,2,-&lt;/P&gt;&lt;P&gt;2,-,2&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,1,2&lt;/P&gt;&lt;P&gt;2,2,2&lt;/P&gt;&lt;P&gt;there is still the top row&lt;/P&gt;&lt;P&gt;2,-,1&lt;/P&gt;&lt;P&gt;which even if could put any other A in the empty space (which I can't due to (1) above), say I did&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,2,1&lt;/P&gt;&lt;P&gt;2,1,2&lt;/P&gt;&lt;P&gt;2,2,2&lt;/P&gt;&lt;P&gt;if I select C=1, it would still miss the middle row if counting A's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So thanks, but I don't think it would quite do it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630681#M231476</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630682#M231477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have any good "real" data I can give you but I have created a couple of qvds manually by only entering the actual ids in a db and creating the qvds, attached below. Requests is B in my case, reports is C and exams is A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the way I&amp;nbsp; try do handle it is to strip any foreign keys from the actual data tables and instead create one connection table which contains all the connection info, I've attached the relevant part of the load script&amp;nbsp; (not all script is here but I hope the relevant part).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think it may be difficult to get into that but perhaps easier to stay on the conceptual A B C level for discussion perhaps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630682#M231477</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630683#M231478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you load this table as two subtables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtable1:&lt;/P&gt;&lt;P&gt;B,A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtable2:&lt;/P&gt;&lt;P&gt;B,C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will have all connections from C to A via B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it, please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630683#M231478</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630684#M231479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ah, ok that middle step would probably work for that part (I believe you about that, sorry)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if having them in 2 separate tables like that I would then have the problem of how to handle/know any "direct" A-C connections (without getting circular references). As it is now an example would be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;2,-,1&lt;/P&gt;&lt;P&gt;2,2,-&lt;/P&gt;&lt;P&gt;2,-,2&lt;/P&gt;&lt;P&gt;2,3,3&lt;/P&gt;&lt;P&gt;2,3,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where most of the data lacks connections between A and C, but connections can exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if that part wasn't clearly explained in the first part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630684#M231479</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630685#M231480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you from Poland?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630685#M231480</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630686#M231481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry no, Sweden if that helps, so it's just across the Baltic sea &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630686#M231481</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630687#M231482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; polish names are often finished by "ski"&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I thought, that it may be easier to talk in polish language&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, as I told, if two subtables works,&lt;/P&gt;&lt;P&gt;you may join them and you will have equivalent in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;subtable1:&lt;/P&gt;&lt;P&gt;B,A&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;1,2&lt;/P&gt;&lt;P&gt;2,1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtable2:&lt;/P&gt;&lt;P&gt;B,C&lt;/P&gt;&lt;P&gt;1,3&lt;/P&gt;&lt;P&gt;1,5&lt;/P&gt;&lt;P&gt;2,1&lt;/P&gt;&lt;P&gt;2,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;joining those subtables you will get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;1,1,3&lt;/P&gt;&lt;P&gt;1,1,5&lt;/P&gt;&lt;P&gt;1,2,3&lt;/P&gt;&lt;P&gt;1,2,5&lt;/P&gt;&lt;P&gt;2,1,1&lt;/P&gt;&lt;P&gt;2,1,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Application should give the same results as with those 2 subtables, but may work a little faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630687#M231482</guid>
      <dc:creator />
      <dc:date>2014-05-28T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630688#M231483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=count({&amp;lt;A=,B=P(B)&amp;gt;}C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630688#M231483</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-05-28T14:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630689#M231484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok thanks, I see what you mean, but what I tried to say was that I can't do that join because that would imply that there are "direct connections" between As and Cs, while we don't know of that's the case if I've only considered the A-B and C-B connections. There are also A-C connections (even without the B connection) that need to be handled and the information stored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in your&lt;/P&gt;&lt;P&gt;B,A,C&lt;/P&gt;&lt;P&gt;1,1,3&lt;/P&gt;&lt;P&gt;1,1,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means that A=1 is connected to C=3 and C=5, directly as well. But in the datamodel there can be direct connections, like these would be, but also only indirect connections, ie, they are only connected to the same C. I need to be able to distinguish between the two cases, and also storing that information in there somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I could add a fourth column in the total table that is a true/false indicating if that particular row also is a "real direct" connection between A and C...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe it's not possible to have it both ways, both knowing A-C connections, while using A-B-C connected data for most part. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630689#M231484</guid>
      <dc:creator />
      <dc:date>2014-05-28T14:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630690#M231485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that was cool, I hadn't seen the P() and E() operators before! I was thinking about documenting that as a manual user selection to achieve the count, so this may actually work for the counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I feel slightly reluctant to going this way is that A,B and C have some different dimensions, and if filtering on one of them, one would expect the dimensions for the others "in normal qlikview manner" to reduce their possible set accordingly to that selection, which is why is posed my question for a way to make the actual selection apply to all "B=2"s in my simple example above, which would mean the normal qlikview selections behaviour would follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for a good idea though, I guess it could be a last resort if we can't find a way to make the actual selections "hit" B and thereby spread to C as well (if an A was originally selected)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630690#M231485</guid>
      <dc:creator />
      <dc:date>2014-05-28T14:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630691#M231486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;I can't understand why you are afraid about circularr refs in my solution?&lt;/P&gt;&lt;P&gt;28-05-2014 16:34 użytkownik "Igor Milososki" &amp;lt;qcwebmaster@qlik.com&amp;gt;&lt;/P&gt;&lt;P&gt;napisał:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;      Qlik Community &amp;lt;http://community.qlik.com/&amp;gt;   Re: Need help with&lt;/P&gt;&lt;P&gt;association/selections in datamodel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Igor Milososki&amp;lt;http://community.qlik.com/people/Milososki?et=watches.email.thread&amp;gt;in *App&lt;/P&gt;&lt;P&gt;Development* - View the full discussion&amp;lt;http://community.qlik.com/message/537284?et=watches.email.thread#537284&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 15:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630691#M231486</guid>
      <dc:creator />
      <dc:date>2014-05-28T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with association/selections in datamodel</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630692#M231487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone reading this later on, this is what we ended up doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While Robs answer could work as a workaround for the calculations themselves, since these 3 tables are at the center of the datamodel, too many dimension selections would not work the desired, "normal" qlikview-way if just having this (ie selecting a dimension on C would not give a selection of As, even though the counts in charts could be made correct). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead, we went with a variant of Dariusz suggestion. We join the data so that we rely on A-B-connections (turns out they are mandatory for the server software), and then join ALL Cs to ALL As on the same B. While this in itself looses the information about which Cs are also directly connected to As, we instead store this in another column, which says true/false for each connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the end, selecting a C, would select ALL As on the same B, and to filter out only direct selection, the user need to select "true" in the additional column to filter out only those directly connected A-Cs. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 07:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-association-selections-in-datamodel/m-p/630692#M231487</guid>
      <dc:creator />
      <dc:date>2014-06-09T07:26:42Z</dc:date>
    </item>
  </channel>
</rss>

