<?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: Distinct Inner Join - Strange Results. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879575#M659172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone interested, if I add a unique key to each record on Usage prior to doing the distinct inner join it provides the correct number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I continue and then drop the key field at the end of the script, it results return back to the incorrect number. Very bizarre behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 08:10:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-22T08:10:09Z</dc:date>
    <item>
      <title>Distinct Inner Join - Strange Results.</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879569#M659166</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;Found a bizarre issue and can't seem to get my head around what would cause this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do a Distinct Inner join on a very large data set to remove data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14296802167353024" jivemacro_uid="_14296802167353024"&gt;
&lt;P&gt;Usage:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsageType&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[..\3.QVD\DataModels\Usage\2015-*-*.qvd]&lt;/P&gt;
&lt;P&gt;(qvd)&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Inner Join&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UserID&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[..\3.QVD\DataModels\Customer.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns a total of 1600 results which is incorrect. If I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14296803884143170 jive_text_macro" jivemacro_uid="_14296803884143170"&gt;
&lt;P&gt;Customer:&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Distinct&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; UserID&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;FROM&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;[..\3.QVD\DataModels\Customer.qvd]&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Usage:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsageType&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[..\3.QVD\DataModels\Usage\2015-*-*.qvd]&lt;/P&gt;
&lt;P&gt;(qvd)&lt;SPAN style="font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Inner Join&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID&lt;/P&gt;
&lt;P&gt;Resident Customer;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Customer;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns 35,502 which is correct. I don't understand why the two results should differ. I have written both methods and the same list of values for UserID are returned. If create an INLINE * FROM [ UserID etc ] this also provides the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further testing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14296817172802777" jivemacro_uid="_14296817172802777"&gt;
&lt;P&gt;Usage:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UsageType&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[..\3.QVD\DataModels\Usage\2015-*-*.qvd]&lt;/P&gt;
&lt;P&gt;(qvd)&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Inner Join&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(UserID) As Counter&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[..\3.QVD\DataModels\Customer.qvd]&lt;/P&gt;
&lt;P&gt;(qvd)&lt;/P&gt;
&lt;P&gt;Group By UserID;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Field Counter;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also provides the correct as results above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what could be causing this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879569#M659166</guid>
      <dc:creator />
      <dc:date>2015-04-22T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879570#M659167</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;See below o/p if your data is like below inner join perform results differently,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Inner join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will return 3 line record...&lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Main:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;inner&amp;nbsp; join&lt;/SPAN&gt;&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;Load Distinct * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&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;will return 2 line record ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879570#M659167</guid>
      <dc:creator />
      <dc:date>2015-04-22T05:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join - Strange Results.</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879571#M659168</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;Read below article&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;www.qlikfix.com/2013/07/30/distinct-can-be-deceiving&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879571#M659168</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-22T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join - Strange Results.</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879572#M659169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first example has a 'Join distinct' which results in distinct values only.&lt;/P&gt;&lt;P&gt;Although in your next examples your join table is based on a previously loaded (distinct) table - that doesnt cause the same effect as you dont write a 'join distinct' but join only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 06:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879572#M659169</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-22T06:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join - Strange Results.</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879573#M659170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Inner Join will give you the result of Dataset on the left intersected with Dataset on the right.&amp;nbsp; Rows that does not exist in any of the Data sets will be omitted Only rows that exists in both set having the same UserID will be resulted from the join.&amp;nbsp; regards &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 06:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879573#M659170</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2015-04-22T06:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879574#M659171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah many thanks....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason the overall logic seems a little backwards and painful just because it provides some strange results.. Now I have to change a few documents to reflect different logic. Oops. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 06:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879574#M659171</guid>
      <dc:creator />
      <dc:date>2015-04-22T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join - Strange Results.</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879575#M659172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone interested, if I add a unique key to each record on Usage prior to doing the distinct inner join it provides the correct number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I continue and then drop the key field at the end of the script, it results return back to the incorrect number. Very bizarre behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 08:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/879575#M659172</guid>
      <dc:creator />
      <dc:date>2015-04-22T08:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Inner Join - Strange Results.</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/1604514#M659173</link>
      <description>&lt;P&gt;Thanks for this, have been struggling from couple of days on the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we should not use distinct with inner join&amp;nbsp; ???&amp;nbsp;&lt;/P&gt;&lt;P&gt;or what is the conclusion of this thread, am stuck into same situation where we were migrating to Qv 12 and values on the Qv 12 are not matching by with Qv 11 even though the script the and database that they both are hitting also same.&lt;/P&gt;&lt;P&gt;we got to know that distinct with Joins behave differently in the Qlikview 12 and Qlkview 11..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it true...??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 10:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Inner-Join-Strange-Results/m-p/1604514#M659173</guid>
      <dc:creator>dhasharadh</dc:creator>
      <dc:date>2019-07-22T10:01:46Z</dc:date>
    </item>
  </channel>
</rss>

