<?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: Data Model in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977367#M962176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a picture of your data structure? So I can see how the tables are interacting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 17:34:16 GMT</pubDate>
    <dc:creator>crystles</dc:creator>
    <dc:date>2015-10-14T17:34:16Z</dc:date>
    <item>
      <title>Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977363#M962172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with QlikView &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. &lt;/P&gt;&lt;P&gt;Looking at associations of two tables in TableViewer I can treat them as they were joined. &lt;/P&gt;&lt;P&gt;But when I want to (kind of SQL)&amp;nbsp; select (in chart)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimension from one table and sum(measure) from second table, it doesn't behave like joined tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Id, val1&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;2, 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table2&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Id, val2&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;2, 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in chart I would get&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Id, sum(val1), sum(val2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1, 200, 100&lt;/P&gt;&lt;P&gt;2, 200, 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect to get column sum(val1)=sum(val2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two tables isn't a big problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; , but when I meet a few tables associated together and need to calculate something that is not included in one table....&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;How do you deal with such situation (without changing data model)? &lt;/P&gt;&lt;P&gt;How do you recognize (looking at tables' relations) what is possible to calculate or what produces false numbers? Or better: how do you recognize what to expect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any name for such behaviour of QlikView (associative model?)? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Stefan &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977363#M962172</guid>
      <dc:creator />
      <dc:date>2015-10-14T13:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977364#M962173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe my questions are silly or I don't understand something what is crucial, but please give some advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 17:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977364#M962173</guid>
      <dc:creator />
      <dc:date>2015-10-14T17:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977365#M962174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are var1 and var2 actual values? If they are, they do not need to be the title of the field. If you created titles for the fields then you could just use sum(var1) as var1 as a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But honestly I don't know if I fully understand the question or not. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 17:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977365#M962174</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2015-10-14T17:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977366#M962175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV will do the join only when required by the aggregation. In you case, there is no join of the two tables required (only single field is used in aggregation), hence no duplication of val2 values for ID1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also Henric's explanations in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3238"&gt;The Calculation Engine&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 17:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977366#M962175</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-14T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977367#M962176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a picture of your data structure? So I can see how the tables are interacting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 17:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977367#M962176</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2015-10-14T17:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977368#M962177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer and Henric's post give some explanation but in case I change table1 to:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Id, Id2, val1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, 1, 100&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, 1, 100&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2, 2, 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make the chart (now join is required), i get:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Id2, sum(val2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1,&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2,&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I expect:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Id2, sum(val2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1,&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;2,&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because of generating all combinations before aggregation &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(e.g. in expression &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;sum(val1*val2)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; result looks all right)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is my mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977368#M962177</guid>
      <dc:creator />
      <dc:date>2015-10-14T21:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977369#M962178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know how far i understood..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(aggr(only(Id)&amp;amp;'&amp;nbsp;&amp;nbsp;&amp;nbsp; '&amp;amp;sum(val1),Id),Chr(10))&lt;/P&gt;&lt;P&gt;=concat(aggr(only(Id)&amp;amp;'&amp;nbsp;&amp;nbsp;&amp;nbsp; '&amp;amp;sum(val2),Id),Chr(10))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102041_Capture.PNG" style="height: 326px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 23:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977369#M962178</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2015-10-14T23:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977370#M962179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is nothing wrong here.&amp;nbsp; The statement "it doesn't behave like joined tables" is correct - the tables are not "joined", they are "linked", which is not exactly the same...&amp;nbsp; As &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ pointed out, there is no duplication in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 00:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977370#M962179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-15T00:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977371#M962180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious to know one related thing, how Qlikview internally store duplicate Id and its values, Is it aggregating just after load or keeps as it is? - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Id, val1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, 100&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, 100&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Since it stores distinct value only in fields and only pointers in the table values, Will it store two pointer values for each 100 which is pointing to same ID value 1 or it aggregates value to 200 for Id 1 just after loading.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Not sure if I explained by query properly.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 05:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977371#M962180</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-15T05:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977372#M962181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No QV can store duplicate values. The distinct values are in the symbol table, but the duplicate records can exist in the bit-stuffed pointers that represent the data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/qlik-blogpost/2848"&gt;Symbol Tables and Bit-Stuffed Pointers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that a table box only shows distinct values, but that does not mean that duplicate rows are not possible. A QV model is not a normal form database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 06:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977372#M962181</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-15T06:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977373#M962182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You understand correctly but this case was explained by swuehl - no need of join - summing as it is in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But look at the second case (my third post) where id is changed by Id2. Then there is a need of join (all combinations) but result is the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977373#M962182</guid>
      <dc:creator />
      <dc:date>2015-10-15T07:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977374#M962183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the second case - my third post. Do you agree that there should be a combination of values - fields from different tables - and aggregation should give different result? Could you explain this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;..."linked" &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;, which is not exactly the same...&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this is the point I try to understand &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp; What does it mean? What are the rules? How does it work with chart? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977374#M962183</guid>
      <dc:creator />
      <dc:date>2015-10-15T07:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977375#M962184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan, I don't think the join is required in your new data set for calculating the aggregation (still only val2 is aggregated).&lt;/P&gt;&lt;P&gt;QV still will group by ID2 resp ID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change your table however to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Id, Id2, val1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, 1, 100&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, 3, 100&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2, 2, 200&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then use Id2 as dimension, and sum(val2) as expression, you will see that each single aggregation is not duplicating val2, neither do the expression total, but the sum-of-rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977375#M962184</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-15T10:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977376#M962185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Qlikview there is a lot of difference between join and association(link).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join:&lt;/P&gt;&lt;P&gt;If you join two table with key word JOIN, INNER JOIn etc. It will get joined and in Table viewer you will get one table only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;If you have two column names same in two table and you did not use key word JOIN. It is linked (We may assume like OUTER JOIN). In Table viewer we will get Two tables with all the rows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977376#M962185</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2015-10-15T10:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977377#M962186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Can you post Screenshot of your data model from table viewer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977377#M962186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-15T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977378#M962187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;"I don't think the join is required in your new data set for calculating the aggregation (still only val2 is aggregated).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QV still will group by ID2 resp ID, "&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sorry, but I don't understand:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;two fields (Id2, val2) from different tables. I group by Id2 and sum val2. They must be joined somehow by Id to get result in chart. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I agree that aggregation (summing) is made only in one table but grouping field is in another, so join is needed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think that join/link is necessary - how chart would show the results otherwise?&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I try to compare QV result to SQL result.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In SQL: select Id2, sum(val2) as sum_val2 from Table1, Table2 where&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table1.Id= Table2.Id&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and result is as I expect. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After changing table, as you wrote, result is ok (the same as SQL &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ) ... but if you add another row 1,3,100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;well I think field values aren't the issue here.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;thank for response&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 12:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977378#M962187</guid>
      <dc:creator />
      <dc:date>2015-10-15T12:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977379#M962188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="image001.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102107_image001.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977379#M962188</guid>
      <dc:creator />
      <dc:date>2015-10-15T13:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977380#M962189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Michael,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Look at the second case - my third post. Do you agree that there should be a combination of values - fields from different tables - and aggregation should give different result? Could you explain this case?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;..."linked" &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;, which is not exactly the same...&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this is the point I try to understand &lt;SPAN class="emoticon-inline emoticon_happy" style="height: 16px; width: 16px;"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; What does it mean? What are the rules? How does it work with chart? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think your confusion is caused by the difference between QV's associative data model compared to a join model, like a classic DBMS. &lt;/P&gt;&lt;P&gt;The link between to tables is used in two ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used in the logical inference engine, it is used as path to determine the possible symbol table values and table records:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3214"&gt;Logical Inference and Aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it comes to aggregations, a link is used as possible join path, i.e. it defines the join between tables when fields from these tables are used together in an aggregation.&lt;/P&gt;&lt;P&gt;But as long as the aggregation scope is limited to a single table in the data model, there is no need for that join. The join is performed only when needed, on demand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A common example is having two tables, a table with order headers and order lines. The header will contain a header fact, like a freight cost value, and the lines cost of each line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a dimension like Customer or OrderID, QV will calculate Sum(Freight) and Sum(ItemCost) both in the scope of their tables, not performing a JOIN, thus not duplicating the freight cost per order line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this makes things somewhat clearer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 14:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977380#M962189</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-17T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977381#M962190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that my confusion comes from comparison of QV associative data model nad classic DBMS. &lt;/P&gt;&lt;P&gt;I also was going direction you described - the join is performed when needed. And example you showed is clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, could you explain the case I wrote? I mean: &lt;/P&gt;&lt;P&gt;table1 ( Id, Id2, val1)&lt;/P&gt;&lt;P&gt;table2 ( Id, val2)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;with values as earlier&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chart :&lt;/P&gt;&lt;P&gt;Id2, sum(val1), sum(val2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that there is a need of&amp;nbsp; "real" join here but it doesen't happen.&amp;nbsp; val2 fom table2&amp;nbsp; must be "connected" with Id2 from table1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result I get suggests that (in one row of chart) the engine takes the value from Id2, "makes a selection", checks what values from Id (in table2) are possible (distinct), and sums val2 for them, finally gives back result to Id2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When we&amp;nbsp; sum(val1*val2), the engine behaves like classic DBMS. The difference is that sum involves fields from different tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, maybe, it si possible to sum up the rules in chart calculation:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; if join isn't needed - QV doesn't do it&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; if join is needed and aggregation function involves field from one table - QV behaves in "associative" way&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; if join is needed and aggregation function involves fields from both tables - QV behaves like classic DBMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I'm not 100% sure. What do you think?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2015 12:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-in-QlikView/m-p/977381#M962190</guid>
      <dc:creator />
      <dc:date>2015-10-18T12:19:39Z</dc:date>
    </item>
  </channel>
</rss>

