<?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: Where Not Exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968908#M967094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you @Ramon,&amp;nbsp; this worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 09:03:11 GMT</pubDate>
    <dc:creator>farnsworth</dc:creator>
    <dc:date>2015-10-01T09:03:11Z</dc:date>
    <item>
      <title>Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968904#M967090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&amp;nbsp; I've trying to load two tables from source data outside of my control.&amp;nbsp; I have two tables of call data, Table1 which contains all data which should be one row of data per call, each call has a unique id.&amp;nbsp; But there is an issue where about 5% of the data has two rows per call which is not duplicate data and in this case the call has two different unique ids.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Table2 which is the "clean" version of the data where I have tidied it up to be one row per call as I need it but contains the unique id for both calls as two separate fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I need to do is load all in &lt;SPAN style="font-size: 13.3333px;"&gt;Table1&lt;/SPAN&gt; where the data isn't in &lt;SPAN style="font-size: 13.3333px;"&gt;Table2 in either ID field&lt;/SPAN&gt;.&amp;nbsp; Then once I have removed the table2 data from &lt;SPAN style="font-size: 13.3333px;"&gt;Table1&lt;/SPAN&gt; i can concatenate the clean data back in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I have done so far is to load the two sets of unique ids in Table2 to a table then I load Table1 where the unique id doesn't exist in the just created table.&amp;nbsp; This isn't loading or removing the data correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;UniqueIDstoRemove as %CALLKEY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;CleanData.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AllCalls.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp; (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS (%Call_Key,%Call_Key)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968904#M967090</guid>
      <dc:creator>farnsworth</dc:creator>
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968905#M967091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post an example with some records of table1, table2 and the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968905#M967091</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-30T17:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968906#M967092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS (%CALLKEY, ID_FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where teh %CALLKEY is the previous loaded field in Table2 and the ID_FIELD is the field of the current load which u want to compare with %CALLKEY....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968906#M967092</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-09-30T17:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968907#M967093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because you are using the same field in your do not exist, any duplicates from table1 will be excluded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you could do something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is the code:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;UniqueIDstoRemove as %CALLKEY,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;UniqueIDstoRemove as %KEYTable1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CleanData.qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AllCalls.qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT EXISTS (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;%KEYTable1&lt;/SPAN&gt;,%Call_Key)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;drop field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;%KEYTable1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 18:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968907#M967093</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-09-30T18:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968908#M967094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you @Ramon,&amp;nbsp; this worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 09:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/968908#M967094</guid>
      <dc:creator>farnsworth</dc:creator>
      <dc:date>2015-10-01T09:03:11Z</dc:date>
    </item>
  </channel>
</rss>

