<?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: Concatenate Load where not exists in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818448#M9205</link>
    <description>&lt;P&gt;No not 100 %&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can compare it to the right table in the first picture.&lt;/P&gt;&lt;P&gt;The data with number '2' and '3' only loaded once. I want to laod every row.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 06:34:32 GMT</pubDate>
    <dc:creator>schuffe</dc:creator>
    <dc:date>2021-06-29T06:34:32Z</dc:date>
    <item>
      <title>Concatenate Load where not exists</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818443#M9203</link>
      <description>&lt;P&gt;Hello everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have 2 sets of data (Data old, Data new)&lt;/P&gt;&lt;P&gt;Now I want to Load everything from 'Data new' and concatenate it with the data from 'Data old' where the number does not exist in Data new.&lt;/P&gt;&lt;P&gt;Small example for the 2 sets:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schuffe_1-1624947023208.png" style="width: 467px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57684i3D899B9E480853A6/image-dimensions/467x201?v=v2" width="467" height="201" role="button" title="schuffe_1-1624947023208.png" alt="schuffe_1-1624947023208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Code looks like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;From Data new;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate&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;From Data old&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where Not Exists(Number);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I get the following Concatenated data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schuffe_2-1624947277170.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57685iDBC240B80B11C727/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schuffe_2-1624947277170.png" alt="schuffe_2-1624947277170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix the script ?&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818443#M9203</guid>
      <dc:creator>schuffe</dc:creator>
      <dc:date>2021-06-29T06:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Load where not exists</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818445#M9204</link>
      <description>&lt;P&gt;what is wrong in output??? it is giving you result as per your requirement.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818445#M9204</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-06-29T06:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Load where not exists</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818448#M9205</link>
      <description>&lt;P&gt;No not 100 %&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can compare it to the right table in the first picture.&lt;/P&gt;&lt;P&gt;The data with number '2' and '3' only loaded once. I want to laod every row.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818448#M9205</guid>
      <dc:creator>schuffe</dc:creator>
      <dc:date>2021-06-29T06:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Load where not exists</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818739#M9217</link>
      <description>&lt;P&gt;DataOld2: noconcatenate Load number, sum(Profit) as Profit resident DataOld group by number;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;LOAD *&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;From DataOld2&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;Where Not Exists(Number);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Drop table DataOld2;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 06:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1818739#M9217</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2021-06-30T06:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Load where not exists</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1819083#M9230</link>
      <description>&lt;P&gt;Your approach with not exists(KeyField) worked only if the values within the KeyField are really unique.&amp;nbsp; If they are not unique you will need more or less expensive extra steps in making the key unique, doing some pre-loads for separate filtering or probably the easiest way is using exists() with two parameters like:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;STRONG&gt;Number as KeyNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From Data new;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;From Data old&lt;/P&gt;&lt;P&gt;Where Not Exists(&lt;STRONG&gt;KeyNumber, Number&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop fields&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;KeyNumber&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;The disadvantage is that your loads - if they come from qvd's - aren't optimized anymore. But like mentioned you will need always additionally efforts and any alternative methods will also cost some performance/run-time.&lt;/P&gt;&lt;P&gt;If the newest data adding only new data and contain no update to the old data it's not necessary to load the newest data at first so that you could reverse the load order and then you could use exists() instead of not exists().&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Concatenate-Load-where-not-exists/m-p/1819083#M9230</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-01T12:17:36Z</dc:date>
    </item>
  </channel>
</rss>

