<?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 How do joins work in QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249463#M498519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; conveert your pivot chart to Straight chart and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to expression-&amp;gt; select sum of rows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then convert again into pivot chart you get correct result &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do for both expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will get back to you for second expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2011 10:59:56 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2011-09-09T10:59:56Z</dc:date>
    <item>
      <title>How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249461#M498517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted a question yesterday on "New to QlikView" however I haven't really received a satisfying answer yet; also my initial message was somewhat confusing so I'll repost it here in a more clear form. I'm using QlikView 10.00.9061.7 SR3 on Windows 7 32-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;PRE&gt;flight:
LOAD * INLINE [
&amp;nbsp;&amp;nbsp; day, fligh_id, aircraft
&amp;nbsp;&amp;nbsp;&amp;nbsp; mon, 1, 737
&amp;nbsp;&amp;nbsp;&amp;nbsp; mon, 2, 320
&amp;nbsp;&amp;nbsp;&amp;nbsp; mon, 3, 737
];

aircraft:
load * inline [
 aircraft, seats
&amp;nbsp; 737, 500
&amp;nbsp; 320, 150
];
&lt;/PRE&gt;&lt;P&gt; And the results I get are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clipboard Image.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7159_Clipboard+Image.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why is QlikView computing the last column as a sum(DISTINCT seats) when I didn't ask for a DISTINCT one? &lt;/LI&gt;&lt;LI&gt;What should I do in order to get the intuitive (and more correct imo) result sum(total &amp;lt;day&amp;gt; seats) = 1150 ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for your help,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 10:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249461#M498517</guid>
      <dc:creator />
      <dc:date>2011-09-09T10:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249462#M498518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the chart properties, and in the Expressions tab, click con "Sum(seats)" and select Total Mode "Sum Of Rows". The field "seats" has two values, and Sum(seats) will return the sum of the two values (650). In the second expression you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;RangeSum(Top(Sum(seats), 1, NoOfRows()))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 10:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249462#M498518</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-09T10:49:08Z</dc:date>
    </item>
    <item>
      <title>How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249463#M498519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; conveert your pivot chart to Straight chart and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to expression-&amp;gt; select sum of rows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then convert again into pivot chart you get correct result &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do for both expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will get back to you for second expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 10:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249463#M498519</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-09T10:59:56Z</dc:date>
    </item>
    <item>
      <title>How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249464#M498520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; see the miguel reply for second expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks you miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 11:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249464#M498520</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-09T11:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249465#M498521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a join instead in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;flight:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; day, fligh_id, aircraft&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon, 1, 737&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon, 2, 320&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mon, 3, 737&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;left join (flight)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; aircraft, seats&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 737, 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 320, 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="flights.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7161_flights.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 11:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249465#M498521</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-09T11:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249466#M498522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, this is probably the best option, creating new fields in each record with the total amount. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The reason is that QlikView doesn't join data, but associate it. That's why you can specifically join resulting tables, use mapping tables, and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 11:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249466#M498522</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-09T11:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do joins work in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249467#M498523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all the answers. I think Gandalf has it right, in order to get the correct results what I must do is really use a join and not rely on QlikView's automatic association of identically-named columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best explanation I've been able to found about that issue is on &lt;A href="http://qliktips.blogspot.com/2010/04/how-qlikview-stores-data.html"&gt;this page&lt;/A&gt;. Basically what happens is that column associations are not SQL joins, they are simply indications that the columns point to the same object in memory (in my case the "aircraft" object being pointed to by two different columns).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all tables in a model that are part of a "fact" table, i.e., containing measure columns, should really be joined using true SQL joins as pointed by Gandalf, which will create one single fact table containing all measures, While "automatic" associations are ok for dimension values that will only be used for filtering and drill-down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 17:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-joins-work-in-QlikView/m-p/249467#M498523</guid>
      <dc:creator />
      <dc:date>2011-09-14T17:37:54Z</dc:date>
    </item>
  </channel>
</rss>

