<?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: exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209335#M878796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;product id&lt;/P&gt;&lt;P&gt;price&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;from Sheet1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;product id&lt;/P&gt;&lt;P&gt;price&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;from Sheet1&lt;/P&gt;&lt;P&gt;where not exists (product id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2016 07:21:58 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2016-10-21T07:21:58Z</dc:date>
    <item>
      <title>exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209334#M878795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 tables - Both of them as same structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1 &lt;/P&gt;&lt;P&gt;========&lt;/P&gt;&lt;P&gt;product id&lt;/P&gt;&lt;P&gt;price&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;few colums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Table2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;========&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;product id&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;price&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;..&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;few colums&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;here if the same product id exists in table2. I would like to exclude it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209334#M878795</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209335#M878796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;product id&lt;/P&gt;&lt;P&gt;price&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;from Sheet1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;product id&lt;/P&gt;&lt;P&gt;price&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;from Sheet1&lt;/P&gt;&lt;P&gt;where not exists (product id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 07:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209335#M878796</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-10-21T07:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209336#M878799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a temporary field for the ids loaded from table 2 and use a not exists to prevent those from being loaded from table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[product id] as &lt;/SPAN&gt;productid_loaded_in_table2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Table2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate(Table2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * from Table1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE Not(Exists(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;productid_loaded_in_table2, [product id]));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Field &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;productid_loaded_in_table2; // drop temp field&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjust the load statements to your specific requirements. This logic will allow one or many records with the same id to come from table1 as long as the id does not exist in table2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 07:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209336#M878799</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-21T07:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209337#M878802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me why these 2 fields are used in not exists. We should only input the field of second table right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE Not(Exists(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;productid_loaded_in_table2, [product id]));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 10:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209337#M878802</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-10-21T10:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209338#M878806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE Not(Exists(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;productid_loaded_in_table2&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;[product id])&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the &lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;productid_loaded_in_table2&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt; the field you loaded from Table2 (first statement)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="color: #575757;"&gt;the &lt;/SPAN&gt; &lt;EM style=": ; color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;[product id]&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;is the field you're loading from Table1 (second statement)&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 12:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209338#M878806</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-10-21T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209339#M878810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan's last sentence answers your question. It comes down to this: from which table do you want to allow multiple records per product? Jonathan's example allows duplicates in Table 2 and duplicates from Table 1 as long as the products from Table 1 aren't already present in Table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to load 1 row per product from Table 1 as well as one row per product from Table 2 on condition that they don't already exist in Table 1, then use a single product_id and a not exists() on each load. That will get you a maximum of 1 record per product id from both tables thrown together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YMMV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 12:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209339#M878810</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-21T12:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209340#M878814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per jonanthan iam still getting values from both the sources table 1 and table 2 but if i use the below&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[product id] ,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;...&lt;/EM&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;FROM Table1;&lt;/EM&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Concatenate(Table2)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LOAD * from Table1&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;WHERE Not Exists(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[product id]));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Iam getting the correct results. is their anything wrong here?&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 12:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209340#M878814</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-10-21T12:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209341#M878817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, nothing is wrong with this version. If it works, then it's correct.&lt;/P&gt;&lt;P&gt;BTW this is the solution that Jyothish suggested at the start of this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 12:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209341#M878817</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-21T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: exists</title>
      <link>https://community.qlik.com/t5/QlikView/exists/m-p/1209342#M878819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Nothing wrong in that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Exists will fetch the data from second key field table based on first key field table like matched records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Not exists fetch the d&lt;SPAN style="font-size: 13.3333px;"&gt;ata from second key field table based on first key field table like unmatched records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 05:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exists/m-p/1209342#M878819</guid>
      <dc:creator />
      <dc:date>2016-10-24T05:46:39Z</dc:date>
    </item>
  </channel>
</rss>

