<?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: Data load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180090#M886417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The incremental load should happen in the same script (you can split it in two different tabs, but not different scripts). Here's what I believe you need.... let me know if this works. Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET QVD_Path&amp;nbsp; = 'LIB://Qlik_QVD/SALES.QVD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vQVDExists = NOT isnull(QVDCreateTime('$(QVD_Path)'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQVDExists) THEN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(QVD_Path)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last_Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Max(POSTDATE) as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let Last_Update_Date = Date(peek('maxdate',0,'Last_Update'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vConcatenate = Concatenate;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vConcatenate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;Where POSTDATE &amp;gt;'$(Last_Update_Date)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE SALES INTO $(QVD_Path) (QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Sep 2016 17:19:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-11T17:19:46Z</dc:date>
    <item>
      <title>Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180083#M886410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in the incremental data load.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have declared the variable which pulls the max. date, then used this variable in main script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The issue I am facing is that when I first upload the data it loads the new data correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reload the data it shows that no data is loaded i.e. 0 lines fetched but it removes the old data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reload the data again it pulls all the data from the starting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that it pulls the new data only. When I reload the data it pulls zero lines with old data in it and this process repeats again and again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;LOAD SCRIPT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;SQL SELECT CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;Where POSTDATE &amp;gt;'$(Last_Update_Date)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;VARIABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Last_Update:&lt;/P&gt;&lt;P&gt;LOAD Max(POSTDATE) as maxdate&lt;/P&gt;&lt;P&gt;resident Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Last_Update_Date = Date(peek('maxdate',0,'Last_Update'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the snapshot of the load&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;When I load the data first time it loads the new data only&lt;/LI&gt;&lt;LI&gt;When I reload the data it show 0 lines fetched&lt;/LI&gt;&lt;LI&gt;When I reload the data it loads all the data&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help an guide me where I correct myself&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/202070" target="_blank"&gt;reddys310&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/space/2146" target="_blank"&gt;New to Qlik Sense&lt;/A&gt;‌&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/Data-load/m-p/1180083#M886410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180084#M886411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the whole script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you are not saving the data into a QVD file, you cannot skip this when using incremental loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 14:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180084#M886411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-10T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180085#M886412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply sir!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above mentioned is my whole script.. Do I miss something please let me know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just a dummy data. I need to apply this in my whole data set in which everyday lakhs of rows are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep. I am not saving the data in QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand correctly from your second line I have no option to skip this. But this will create a problem for me if the data loads twice because it removes all the data second time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 14:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180085#M886412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-10T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180086#M886413</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;Please see this webpage. You are missing a couple things to make an incremental load work. You need to read a QVD with previous data and append new data to it, it cannot be done on the fly from a database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/" title="https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/"&gt;https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 15:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180086#M886413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-10T15:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180087#M886414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot sir. It really helps!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have few doubts. It would be great if you resolve my doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created a qvd which pulls all data in it. I have declared a variable by which I am able to know my last date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this qvd for incremental load by following the above link steps ( Insert, Update &amp;amp; Delete).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Queries:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do I need to declare a variable in my incremental load QVD, if yes how and if not how it reads the variable which pulls the latest date&lt;/P&gt;&lt;P&gt;2. In the link, we have inner join with the ID, what will happen if we do not have any unique id or if we have multiple id&lt;/P&gt;&lt;P&gt;3. &lt;SPAN style="font-size: 13.3333px;"&gt;I am missing something because still using the variable it is loading full data set, not those with the latest date data. Might be the variable is not working fine as I have not declared the variable in Incremental load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;QVD WHICH PULLS ALL DATA AND LAST DATE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;SQL SELECT CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last_Update:&lt;/P&gt;&lt;P&gt;LOAD Max(POSTDATE) as maxdate&lt;/P&gt;&lt;P&gt;resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Last_Update_Date = Date(peek('maxdate',0,'Last_Update'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;INCREMENTAL LOAD QVD:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incrementals:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;Where POSTDATE &amp;gt;'$(Last_Update_Date)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM 'LIB://Qlik_QVD/SALES.qvd'(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2016 05:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180087#M886414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-11T05:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180088#M886415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you creating your QVD? Can you share your script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2016 16:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180088#M886415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-11T16:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180089#M886416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;QVD Creation Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;SQL SELECT CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last_Update:&lt;/P&gt;&lt;P&gt;LOAD Max(POSTDATE) as maxdate&lt;/P&gt;&lt;P&gt;resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Last_Update_Date = Date(peek('maxdate',0,'Last_Update'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE SALES&lt;/P&gt;&lt;P&gt;INTO 'LIB://Qlik_QVD/SALES.QVD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;INCREMENTAL LOAD SCRIPT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incrementals:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;Where POSTDATE &amp;gt;'$(Last_Update_Date)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM 'LIB://Qlik_QVD/SALES.qvd'(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Incrementals&lt;/P&gt;&lt;P&gt;INTO 'LIB://Qlik_QVD/Incrementals.QVD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the qvd files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where is the issue&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2016 17:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180089#M886416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-11T17:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180090#M886417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The incremental load should happen in the same script (you can split it in two different tabs, but not different scripts). Here's what I believe you need.... let me know if this works. Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET QVD_Path&amp;nbsp; = 'LIB://Qlik_QVD/SALES.QVD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vQVDExists = NOT isnull(QVDCreateTime('$(QVD_Path)'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQVDExists) THEN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(QVD_Path)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last_Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Max(POSTDATE) as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let Last_Update_Date = Date(peek('maxdate',0,'Last_Update'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vConcatenate = Concatenate;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vConcatenate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;Where POSTDATE &amp;gt;'$(Last_Update_Date)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE SALES INTO $(QVD_Path) (QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2016 17:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180090#M886417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-11T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180091#M886418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff;"&gt;Thanks a lot sir for the help!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot sir for the help!!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Yes, this is same thing I want.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But in loading we have the Synthetic Key, how we remove that key. There is a table "Last_Update" I am not able to find out where this table is created.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It also shows an error while doing CONCATENATE&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Below is the screenshot of it:&lt;IMG alt="Issue.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137062_Issue.png" style="height: 423px; width: 620px;" /&gt;&lt;IMG alt="Syn Key.png" class="jive-image image-2" src="/legacyfs/online/137069_Syn Key.png" style="height: 243px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It would be grateful for me if you can explain me what you did in the script part briefly and also help me to remove the synthetic key.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot for help!!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please guide me&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 03:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180091#M886418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T03:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180092#M886419</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;The "error" in the concatenate is ok, QlikView has some bugs like this, there's no error but still you'll see it. To remove the sintetic key add this right after the ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Last_Update;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I'm doing this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check if there's a QVD already&lt;OL&gt;&lt;LI&gt;If yes, then&lt;OL&gt;&lt;LI&gt;Load the current content from it&lt;/LI&gt;&lt;LI&gt;Append new data from database&lt;/LI&gt;&lt;LI&gt;Store all the dataset in the QVD (this new version overwrites the old one)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If no, then&lt;OL&gt;&lt;LI&gt;Read the data directly from database&lt;/LI&gt;&lt;LI&gt;Store the data in new QVD to be used next time you run it&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way I forgot to add a variable value in case the QVD does not exist... so the whole script would be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'TIGUNVMBGWL0011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET QVD_Path&amp;nbsp; = 'LIB://Qlik_QVD/SALES.QVD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vQVDExists = NOT isnull(QVDCreateTime('$(QVD_Path)'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Last_Update_Date = '2000/01/01'; //Use whatever date you want here to pull all your data from database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQVDExists) THEN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(QVD_Path)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last_Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Max(POSTDATE) as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let Last_Update_Date = Date(peek('maxdate',0,'Last_Update'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vConcatenate = Concatenate;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;DROP TABLE Last_Update; //getting rid of temporal table created to pull max date from QVD to avoid syntetic keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vConcatenate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTDATE&lt;/P&gt;&lt;P&gt;FROM msdb.dbo.Customers&lt;/P&gt;&lt;P&gt;Where POSTDATE &amp;gt;'$(Last_Update_Date)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE SALES INTO $(QVD_Path) (QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 14:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180092#M886419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180093#M886420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot sir!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a small query, if the QVD does not exist and I want that pass the variable which dynamically pull the data from the first day.. if yes then how??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 06:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180093#M886420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-17T06:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180094#M886421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take this line of the script out into an include file so you can modify it externally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Last_Update_Date = '2000/01/01'; //Use whatever date you want here to pull all your data from database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/qlikview-include-files/" title="https://www.quickintelligence.co.uk/qlikview-include-files/"&gt;https://www.quickintelligence.co.uk/qlikview-include-files/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 13:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-load/m-p/1180094#M886421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-19T13:46:20Z</dc:date>
    </item>
  </channel>
</rss>

