<?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: Load Distinct Resident not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796663#M1211314</link>
    <description>&lt;P&gt;Distinct applies to an entire line, not to a single field. Since your lines are not duplicates due to a different amt value, they won't be removed by the DISTINCT.&lt;/P&gt;&lt;P&gt;Which of the two lines would you expect to be kept in this scenario? Or should the line be 1, 6, 1-2 because of sum(amt)?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 19:37:33 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-04-02T19:37:33Z</dc:date>
    <item>
      <title>Load Distinct Resident not working</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796651#M1211309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is my script.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[one]:
LOAD  * INLINE [
   list, amt, key
    1, 2, 1-2
    1, 4, 1-2
    2,3, 2-3
];
NoConcatenate
[two]:
load Distinct key, list, amt
Resident one;
drop Table one;&lt;/LI-CODE&gt;&lt;P&gt;I was expecting the duplicate keys to drop in table two but they did not.&lt;/P&gt;&lt;P&gt;what am I missing here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 17:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796651#M1211309</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2021-04-02T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load Distinct Resident not working</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796658#M1211312</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tmp:
LOAD  * INLINE [
   list, amt, key
    1, 2, 1-2
    1, 4, 1-2
    2,3, 2-3
];
NoConcatenate
DISTINCT:
LOAD distinct key,
     list,
     amt
    Resident tmp;

Final_DISTINCT:
NoConcatenate
LOAD *
Resident DISTINCT
Where key &amp;lt;&amp;gt; Previous(key)
Order By key;
DROP Tables DISTINCT,tmp;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Apr 2021 17:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796658#M1211312</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-04-02T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load Distinct Resident not working</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796663#M1211314</link>
      <description>&lt;P&gt;Distinct applies to an entire line, not to a single field. Since your lines are not duplicates due to a different amt value, they won't be removed by the DISTINCT.&lt;/P&gt;&lt;P&gt;Which of the two lines would you expect to be kept in this scenario? Or should the line be 1, 6, 1-2 because of sum(amt)?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 19:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct-Resident-not-working/m-p/1796663#M1211314</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-04-02T19:37:33Z</dc:date>
    </item>
  </channel>
</rss>

