<?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: does association effect result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862543#M1009536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LEFT KEEP will remove the records from the right side table that don't have matching key values in the left side table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2015 13:05:44 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-05-01T13:05:44Z</dc:date>
    <item>
      <title>does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862542#M1009535</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;&lt;/P&gt;&lt;P&gt;I am pulling the data from source database and also many tables are loaded. I am mainly facing issue with data loaded from orders table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When i use the below expression in a text object i get value as 45 in final dashboard. &lt;/P&gt;&lt;P&gt;Inorder to test, I loaded only orders.qvd into a qlikview document and the below expression gives result 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct orderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In final dashboard my orders table no filteration condition, however it is linked to 3 different tables using orderID field. This linking is done using LEFT KEEP(ordersTbl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering, does the connection with other tables effect the output of the key field??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862542#M1009535</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2015-05-01T13:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862543#M1009536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LEFT KEEP will remove the records from the right side table that don't have matching key values in the left side table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862543#M1009536</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-01T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862544#M1009537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. I knew that LEFT keep reduce rows from the right table, but i am counting key field, so i expect all the key values to be present in the left table, then why the output of the expression is 45, instead of 99.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862544#M1009537</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2015-05-01T13:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862545#M1009538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;On a key field y&lt;/SPAN&gt;ou can only use count(distinct ...), not count( ... ). That will give you the total of distinct key values over both tables. That number will be correct. If you think it should be something else you'll have to debug your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862545#M1009538</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-01T13:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862546#M1009539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ordersTbl &lt;/STRONG&gt;has only 45 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;orderID &lt;/STRONG&gt;you will reduce the orderID from your orders.qvd because of the LEFT KEEP. What exactly are your trying to achieve by doing a LEFT KEEP, may be you need a RIGHT KEEP if order is your FACT Table here.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862546#M1009539</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-01T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862547#M1009540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info. I will get back after some investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@sunindia: My orderTbl is at the beginning of the script, so i am using LEFT KEEP(orderTbl) to reduce the rows in other table. So i think my LEFT KEEP is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862547#M1009540</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2015-05-01T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862548#M1009541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be right, since I hardly know your data and its structure. But just because it is loaded before everything won't necessarily mean that you will have to use LEFT KEEP. You need to check which one is your FACT TABLE (meaning contain the all your order no.). If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;orderTbl contain all the orderid then you are right. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 13:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862548#M1009541</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-01T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: does association effect result</title>
      <link>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862549#M1009542</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;You probably have Null values in 1 of the table.&lt;/P&gt;&lt;P&gt;Just use NullCount(orderID) function to figure&amp;nbsp; out which of&amp;nbsp; the table has null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 14:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/does-association-effect-result/m-p/862549#M1009542</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-05-01T14:04:25Z</dc:date>
    </item>
  </channel>
</rss>

