<?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: wrong association, so wrong result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225298#M860437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try changing your script to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; Main:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[&lt;BR /&gt; Year, Month, Sales&lt;BR /&gt; 2014, 1, 100&lt;BR /&gt; 2014, 2, 100&lt;BR /&gt; 2014, 3, 100&lt;BR /&gt; 2014, 4, 100&lt;BR /&gt; 2014, 5, 100&lt;BR /&gt; 2014, 6, 100&lt;BR /&gt; 2014, 7, 100&lt;BR /&gt; 2014, 8, 100&lt;BR /&gt; 2014, 9, 100&lt;BR /&gt; 2014, 10, 100&lt;BR /&gt; 2014, 11, 100&lt;BR /&gt; 2014, 12, 100&lt;BR /&gt; 2015, 1, 100&lt;BR /&gt; 2015, 2, 100&lt;BR /&gt; 2015, 3, 100&lt;BR /&gt; 2015, 4, 100&lt;BR /&gt; 2015, 5, 100&lt;BR /&gt; 2015, 6, 100&lt;BR /&gt; 2015, 7, 100&lt;BR /&gt; 2015, 8, 100&lt;BR /&gt; 2015, 9, 100&lt;BR /&gt; 2015, 10, 100&lt;BR /&gt; 2015, 11, 100&lt;BR /&gt; 2015, 12, 100&lt;BR /&gt; 2016, 1, 100&lt;BR /&gt; 2016, 2, 100&lt;BR /&gt; 2016, 3, 100&lt;BR /&gt; 2016, 4, 100&lt;BR /&gt; 2016, 5, 100&lt;BR /&gt; 2016, 6, 100&lt;BR /&gt; 2016, 7, 100&lt;BR /&gt; 2016, 8, 100&lt;BR /&gt; 2016, 9, 100&lt;BR /&gt; 2016, 10, 100&lt;BR /&gt; 2016, 11, 100&lt;BR /&gt; 2016, 12, 100&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 15:54:05 GMT</pubDate>
    <dc:creator>awhitfield</dc:creator>
    <dc:date>2017-01-10T15:54:05Z</dc:date>
    <item>
      <title>wrong association, so wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225297#M860436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have 2 tables. Table1 has sales data of 3 years. Table2 is a calender data of 3 years. In both tables each year has 12 months data, ie&lt;BR /&gt;-Month field values:&lt;BR /&gt;1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12&lt;BR /&gt;-Year field values:&lt;BR /&gt;2014, 2015, 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When both tables are linked by &lt;STRONG&gt;YEAR&lt;/STRONG&gt; field, then sum(sales) shows 1200 in text object(when single year selected), which is correct. But the straight table shows 1200 instead of 100, which is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148983_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When both tables are linked by &lt;STRONG&gt;MONTH&lt;/STRONG&gt; field, then sum(sales) shows 3600 in text object(when single year selected) instead of 1200 which is wrong.&amp;nbsp; In straight table shows 1200 instead of 100 which is again wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148984_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above result can be seen in the attached app.&lt;/P&gt;&lt;P&gt;I see that when I link both tables using a concatenated key of Month &amp;amp; Year, then i get correct result ie 100 in the staight table. I am trying to understand why I should create concatenated key here.&lt;/P&gt;&lt;P&gt;Please help me to understand why this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225297#M860436</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: wrong association, so wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225298#M860437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try changing your script to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; Main:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[&lt;BR /&gt; Year, Month, Sales&lt;BR /&gt; 2014, 1, 100&lt;BR /&gt; 2014, 2, 100&lt;BR /&gt; 2014, 3, 100&lt;BR /&gt; 2014, 4, 100&lt;BR /&gt; 2014, 5, 100&lt;BR /&gt; 2014, 6, 100&lt;BR /&gt; 2014, 7, 100&lt;BR /&gt; 2014, 8, 100&lt;BR /&gt; 2014, 9, 100&lt;BR /&gt; 2014, 10, 100&lt;BR /&gt; 2014, 11, 100&lt;BR /&gt; 2014, 12, 100&lt;BR /&gt; 2015, 1, 100&lt;BR /&gt; 2015, 2, 100&lt;BR /&gt; 2015, 3, 100&lt;BR /&gt; 2015, 4, 100&lt;BR /&gt; 2015, 5, 100&lt;BR /&gt; 2015, 6, 100&lt;BR /&gt; 2015, 7, 100&lt;BR /&gt; 2015, 8, 100&lt;BR /&gt; 2015, 9, 100&lt;BR /&gt; 2015, 10, 100&lt;BR /&gt; 2015, 11, 100&lt;BR /&gt; 2015, 12, 100&lt;BR /&gt; 2016, 1, 100&lt;BR /&gt; 2016, 2, 100&lt;BR /&gt; 2016, 3, 100&lt;BR /&gt; 2016, 4, 100&lt;BR /&gt; 2016, 5, 100&lt;BR /&gt; 2016, 6, 100&lt;BR /&gt; 2016, 7, 100&lt;BR /&gt; 2016, 8, 100&lt;BR /&gt; 2016, 9, 100&lt;BR /&gt; 2016, 10, 100&lt;BR /&gt; 2016, 11, 100&lt;BR /&gt; 2016, 12, 100&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225298#M860437</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-01-10T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: wrong association, so wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225299#M860438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use Month1 as your dimension and choose Month? If you use Month1 as your dimension, it looks good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148986_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales and Month are not linked properly (just as your mentioned) which is causing the trouble here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148985_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225299#M860438</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-10T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: wrong association, so wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225300#M860439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the Month1 field is giving correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact, I created this example to understand the behaviour of association. When I create a concatenated key in both tables it is also giving correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,Year1 &amp;amp; '|' &amp;amp; Month1 as Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to know, GENERALLY how we can decide when to create a concatenated key and what fields to include in that??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225300#M860439</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2017-01-10T16:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: wrong association, so wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225301#M860440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could anyone answer to my query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 12:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225301#M860440</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2017-01-11T12:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: wrong association, so wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225302#M860441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to decide the&amp;nbsp; "KEY"&amp;nbsp; you may need to understand the DB&amp;nbsp; design as well as Business logic. QlikView will work based on the key fields.So before creating any data model go through the data.&lt;/P&gt;&lt;P&gt;It is just generic.&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 13:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/wrong-association-so-wrong-result/m-p/1225302#M860441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T13:42:12Z</dc:date>
    </item>
  </channel>
</rss>

