<?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: How to create incremental load using 2 fields ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432147#M96692</link>
    <description>&lt;P&gt;Make a composite key field and use that field as your Where not Exists(Key) clause.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VehicleID &amp;amp; '|' &amp;amp; RowID as Key&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 05:13:28 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2024-03-19T05:13:28Z</dc:date>
    <item>
      <title>How to create incremental load using 2 fields ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2431859#M96673</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I trying to write script of an incremental load using 2 fields (&lt;STRONG&gt;VehicleID&lt;/STRONG&gt;&amp;nbsp;,&amp;nbsp;&lt;STRONG&gt;RowID&lt;/STRONG&gt;).&lt;/P&gt;
&lt;P&gt;I would appreciate your help in writing the code for the process of incremental loading.&lt;/P&gt;
&lt;P&gt;I want to take each time the new Data (Increment), which does not appear in the existing table, and add it to the existing data (Initial Data) and update if data was changed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Initial Data:&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="44.44514269002652%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;&lt;STRONG&gt;VehicleID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;&lt;STRONG&gt;RowID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;12345&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;12345&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;12345&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;21212&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Increment:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;TABLE border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;&lt;STRONG&gt;VehicleID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;&lt;STRONG&gt;RowID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;12345&lt;/TD&gt;
&lt;TD width="25%"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;21212&lt;/TD&gt;
&lt;TD width="25%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;34343&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 18 Mar 2024 12:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2431859#M96673</guid>
      <dc:creator>Xabinav</dc:creator>
      <dc:date>2024-03-18T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create incremental load using 2 fields ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432147#M96692</link>
      <description>&lt;P&gt;Make a composite key field and use that field as your Where not Exists(Key) clause.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VehicleID &amp;amp; '|' &amp;amp; RowID as Key&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 05:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432147#M96692</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-03-19T05:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create incremental load using 2 fields ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432355#M96706</link>
      <description>&lt;P&gt;Thanks Rob.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Where not Exists'&amp;nbsp;clause&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;doesn't work well in this case because I read data from SQL&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;(SQL SELECT ... FROM)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I have tried to write it like this,&amp;nbsp;It works but doesn't seem to shorten the reload time.&lt;/P&gt;
&lt;P&gt;There is another way to write it ?&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Source:
LOAD  
     VehicleID&amp;amp;'|'&amp;amp;RowID as Key_Source,
     *
FROM
[..\QVDs\Source.qvd](qvd);

Concatenate(Source)
LOAD 
     VehicleID&amp;amp;'|'&amp;amp;RowID as Key,
     *
Where Not Exists (Key_Source, VehicleID&amp;amp;'|'&amp;amp;RowID);

DROP FIELD Key_Source

SQL SELECT *
FROM DB.dbo.SQL;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Mar 2024 12:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432355#M96706</guid>
      <dc:creator>Xabinav</dc:creator>
      <dc:date>2024-03-19T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create incremental load using 2 fields ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432443#M96728</link>
      <description>&lt;P&gt;The DROP FIELD should come after the SQL Select.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Concatenate(Source)
LOAD  *
Where Not Exists (Key_Source, VehicleID&amp;amp;'|'&amp;amp;RowID)
;
SQL SELECT *
FROM DB.dbo.SQL;

DROP FIELD Key_Source&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Mar 2024 14:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-incremental-load-using-2-fields/m-p/2432443#M96728</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-03-19T14:26:17Z</dc:date>
    </item>
  </channel>
</rss>

