<?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 data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641759#M447244</link>
    <description>Is it possible to get the same result without changing the order of table LOADS ?</description>
    <pubDate>Thu, 31 Oct 2019 14:58:48 GMT</pubDate>
    <dc:creator>pakdoust</dc:creator>
    <dc:date>2019-10-31T14:58:48Z</dc:date>
    <item>
      <title>distinct data</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641718#M447241</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;With the script below I have a result of 4 rows including PID '123' two times (with 'ab' and 'abcdef').&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'd like to keep only one row if it has the same PID&amp;nbsp; : in this cas I'd like to keep '123', 'abcdef' instead of '123', 'ab'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;PID , brand&lt;BR /&gt;123 , ab&lt;BR /&gt;120, ab&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Table2:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;PID , brand&lt;BR /&gt;123 , abcdef&lt;BR /&gt;145 , ab&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Concatenate&lt;BR /&gt;Load distinct *&lt;BR /&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Result wanted :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;120, ab&lt;/P&gt;&lt;P&gt;123, abcdef&lt;/P&gt;&lt;P&gt;145, ab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641718#M447241</guid>
      <dc:creator>pakdoust</dc:creator>
      <dc:date>2024-11-16T02:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: distinct data</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641745#M447243</link>
      <description>&lt;P&gt;Try with this...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table2:
LOAD * INLINE [
  PID, brand
  123, abcdef
  145, ab
];

Table1:
LOAD * INLINE [
  PID, brand
  123, ab
  120, ab
]
WHERE Not Exists(PID);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 14:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641745#M447243</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-10-31T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: distinct data</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641759#M447244</link>
      <description>Is it possible to get the same result without changing the order of table LOADS ?</description>
      <pubDate>Thu, 31 Oct 2019 14:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641759#M447244</guid>
      <dc:creator>pakdoust</dc:creator>
      <dc:date>2019-10-31T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: distinct data</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641773#M447246</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
LOAD * INLINE [
  PID, brand
  123, ab
  120, ab
];

Table2:
NOCONCATENATE
LOAD *, PID AS tmpPID
INLINE [
  PID, brand
  123, abcdef
  145, ab
]
;
CONCATENATE(Table2)
LOAD * RESIDENT Table1
WHERE Not Exists(tmpPID, PID);

DROP TABLE Table1;
DROP FIELD tmpPID;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-data/m-p/1641773#M447246</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-10-31T15:22:43Z</dc:date>
    </item>
  </channel>
</rss>

