<?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: Removing dups with not exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836256#M1013886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, It works, but I don't understand why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always two fields in not exists(field1, field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is not posssible one field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where not exists(key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it doesn' t work neither&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 23:01:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-27T23:01:01Z</dc:date>
    <item>
      <title>Removing dups with not exists</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836253#M1013883</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;I have a resident table where I add new rows and I want to control duplicates by a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- I load my resdiente table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ventas:&lt;/P&gt;&lt;P&gt;LOAD mes, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ciudad, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; producto, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; venta&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Hoja1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- I remove dups by key: mes, ciudad, producto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ventas2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mes &amp;amp; ciudad &amp;amp; producto as key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mes,ciudad,producto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum(venta) AS venta&lt;/P&gt;&lt;P&gt;Resident Ventas&lt;/P&gt;&lt;P&gt;Group by mes, ciudad, producto;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Ventas;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- I load new data of other excel and I want to control dups.&amp;nbsp; I use not Exists sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; mes &amp;amp; ciudad &amp;amp; producto as key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; mes,&amp;nbsp; ciudad, producto,venta&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Hoja1)&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(mes &amp;amp; ciudad &amp;amp; producto) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work, because it doesn't add any new row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836253#M1013883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T22:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Removing dups with not exists</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836254#M1013884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;/P&gt;&lt;P&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;WHERE NOT Exists(&lt;STRONG&gt;key,&amp;nbsp; &lt;/STRONG&gt;mes &amp;amp; ciudad &amp;amp; producto) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836254#M1013884</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-27T22:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing dups with not exists</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836255#M1013885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be&lt;/P&gt;&lt;P&gt;where not exists (&lt;STRONG&gt;key&lt;/STRONG&gt;, mes &amp;amp; ciudad &amp;amp; producto)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836255#M1013885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T22:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Removing dups with not exists</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836256#M1013886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, It works, but I don't understand why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always two fields in not exists(field1, field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is not posssible one field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where not exists(key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it doesn' t work neither&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 23:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836256#M1013886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T23:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing dups with not exists</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836257#M1013887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible with one field, if the field exists in the current table and in a table loaded before.&amp;nbsp; In your case, the field key exists in an earlier table, Ventas2, but not in Hoja1.&lt;/P&gt;&lt;P&gt;Here is an example with one field:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;FROM...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;C,&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE exists (A);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because A is in both tables.&lt;/P&gt;&lt;P&gt;Example with two fields:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;FROM...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X as A,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;C,&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE exists (A,X);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because you only rename X to A in the second table, but there is no A field in the source of the second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more note: the first parameter in exists(Param1, Param2) must always be a field.&amp;nbsp; The second could be an expression as in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 23:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-dups-with-not-exists/m-p/836257#M1013887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T23:08:25Z</dc:date>
    </item>
  </channel>
</rss>

