<?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: Incremental Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988196#M336901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have two issues here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load statement result in a single table but it has two joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the xml files have 14 tables each and I am loading three of them only&amp;nbsp; such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;from xml file table xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;from xml file table ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;from xml file table SS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Table1 into AA.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also , we receive the files everyday at 8 pm and it has today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally, how do I handle the old files if I want to include them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2015 06:55:05 GMT</pubDate>
    <dc:creator>alec1982</dc:creator>
    <dc:date>2015-09-21T06:55:05Z</dc:date>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988192#M336897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to find the quickest way to do incremental load from a set of xml files.. the files have the names include date string such as 2015-09-16 and so on. once the file is received and stored into the directory, it will never change and we receive a new file every night..&lt;/P&gt;&lt;P&gt;sample of files names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2015-09-10-Data.xml&lt;/P&gt;&lt;P&gt;2015-09-11-Data.xml&lt;/P&gt;&lt;P&gt;2015-09-12-Data.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought about storing the data into qvd then load next file but not sure how to do that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 05:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988192#M336897</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-09-21T05:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988193#M336898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, as you said you are getting data on every night..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just making sure, are you getting old data as well every time or its only updated data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like today is 21st Sept, so in today night file will you be having 18th Sep or 19 Sept or 20 Sept data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or it will be of 21st sept only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 06:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988193#M336898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988194#M336899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as simple as below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store the first xml file into qvd, like:&lt;/P&gt;&lt;P&gt;FirstTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From &amp;lt;FirstXml&amp;gt;;&lt;/P&gt;&lt;P&gt;Store FrstTable into ....Data.qvd(qvd);&lt;/P&gt;&lt;P&gt;Drop table FirstTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From&amp;nbsp; ....Data.qvd(qvd);&lt;/P&gt;&lt;P&gt;Concatenate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // not needed if all fields are common (which is the case in general)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From&amp;nbsp; ...&amp;lt;DailyNew XML&amp;gt;;&amp;nbsp;&amp;nbsp; // this could be automated(the name has not be hard coded) if you keep the new file in a separate folder or take in same name and overwrite&lt;/P&gt;&lt;P&gt;Store &lt;STRONG&gt;Final&lt;/STRONG&gt; into .....Data.qvd(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 06:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988194#M336899</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-21T06:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988195#M336900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that you have a load statement that can load the XML files.&lt;/P&gt;&lt;P&gt;Then use something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Get the last loaded date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T_MaxDate:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load Num(Max(EffDate)) As MaxDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;From Store.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vMaxDate = Peek('MaxDate');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table T_MaxDate;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Load historical data from storage qvd&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&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 Store.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Now loop over the source files to find those not yet loaded&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For Each vFile in FileList('&amp;lt;path to qvd files&amp;gt;\*.xml')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;EM&gt;&amp;nbsp; Let vBasename = SubField(SubField(vFile, '\', -1), ',', 1);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let vFileDate = Num(Date#(Left(vBaseName, 10), 'YYYY-MM-DD'));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If vFileDate &amp;gt; vMaxDate Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate(Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(vFileDate) As EffDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [$(vFile )] (......);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Update the storage qvd&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;STORE Data Into Store.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify the storage qvd file name/path and FileList path and XML qualifiers to suit your environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 06:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988195#M336900</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-21T06:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988196#M336901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have two issues here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load statement result in a single table but it has two joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the xml files have 14 tables each and I am loading three of them only&amp;nbsp; such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;from xml file table xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;from xml file table ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;from xml file table SS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Table1 into AA.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also , we receive the files everyday at 8 pm and it has today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally, how do I handle the old files if I want to include them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 06:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988196#M336901</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-09-21T06:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988197#M336902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Their is no logic if you are having today date's data only in a file beacuse you may required old data as well and on daily basis you need to concatenate the new updated file...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988197#M336902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988198#M336903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;while having total 5 files and the first one is on 2015-09-16 and it is already loaded to create the initial qvd, I am having some issues with the variables.&lt;/P&gt;&lt;P&gt;the other files are for the dates 17, 18, 19, 20 of September.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VFile shows only one value = C:\2015-09-20-Data.xml.&lt;/P&gt;&lt;P&gt;vBaseName returns 2015-09-20-Data.xml&lt;/P&gt;&lt;P&gt;vFileDate is not created at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988198#M336903</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-09-21T07:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988199#M336904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the issue with the variable creation. it is minor naming issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only thing I need help with now is how to handle the join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;from xml file table xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;from xml file table ABC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;/P&gt;&lt;P&gt;Load A,&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;from xml file table SS;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988199#M336904</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-09-21T08:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988200#M336905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basename / BaseName -- oops &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't do a join inside the loop. The join adds data fields and after the first pass the fields exist and they become part of the join key. What you need to do is collect each part in a separate table and join them after the loop.&amp;nbsp; You will also need to concatenate the storage QVD after the join for the same reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&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;// Get the last loaded date&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;T_MaxDate:&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 Num(Max(EffDate)) As MaxDate&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;From Store.qvd (qvd);&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;Let vMaxDate = Peek('MaxDate');&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;DROP Table T_MaxDate;&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&gt;&lt;EM&gt;// Now loop over the source files to find those not yet loaded&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For Each vFile in FileList('&amp;lt;path to qvd files&amp;gt;\*.xml')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let vBasename = SubField(SubField(vFile, '\', -1), ',', 1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let vFileDate = Num(Date#(Left(vBasename, 10), 'YYYY-MM-DD'));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If vFileDate &amp;gt; vMaxDate Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(vFileDate) As EffDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [$(vFile )] (......table is 'xyz');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Data2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(vFileDate) As EffDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [$(vFile )] (......table is 'abc');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Data3:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(vFileDate) As EffDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [$(vFile )] (......table is 'def');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left join (Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * Resident Data2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left join (Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * Resident Data3;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate(Data)&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 Store.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;STORE Data Into Store.qvd (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988200#M336905</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-21T11:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988201#M336906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this script will load any newer not-yet-loaded files, even if the script does not run for a few days for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988201#M336906</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-21T11:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988202#M336907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Using QVD Files for Incremental Load&lt;/H1&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Incremental load is a very common task in relation to data bases. It is defined as loading nothing but new or changed records from the database. All other data should already be available, in one way or another. With &lt;A class="MCXref_0" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;QVD Files&lt;/EM&gt;&lt;/A&gt; it is possible to perform incremental load in most cases.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The basic process is described below:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1. Load the &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffffff; background-color: #ff0000;"&gt;new data&lt;/SPAN&gt; from Database table (a slow process, but loading a limited number of records).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. Load the &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background-color: #008080;"&gt;old data&lt;/SPAN&gt; from QVD file (loading many records, but a much faster process).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3. Create a new QVD file.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;4. Repeat the procedure for every table loaded.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG border="0" class="jiveImage jive-image" style="border-style: none; font-weight: inherit; font-style: inherit; font-family: inherit;" /&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The complexity of the actual solution depends on the nature of the source database, but the following basic cases can be identified:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1) &lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/thread/137834" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Case 1: Append Only&lt;/EM&gt;&lt;/A&gt; (typically log files&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) &lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/thread/137834" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Case 2: Insert Only (No Update or Delete)&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3) &lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/thread/137834" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Case 3: Insert and Update (No Delete)&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;4) &lt;A _jive_internal="true" class="MCXref_0" href="https://community.qlik.com/thread/137834" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Case 4: Insert, Update and Delete&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Below you will find outlined solutions for each of these cases. The reading of QVD files can be done in either optimized mode or standard mode. (The method employed is automatically selected by the QlikView script engine depending on the complexity of the operation.) Optimized mode is (very approximately) about 10x faster than standard mode or about 100x faster than loading the database in the ordinary fashion.&lt;/P&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor966" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Append_only" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;Case 1: Append Only&lt;/H3&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The simplest case is the one of log files; files in which records are only appended and never deleted. The following conditions apply:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The database must be a log file (or some other file in which records are appended and not inserted or deleted) which is contained in a text file (no ODBC/OLE DB). &lt;/LI&gt;&lt;LI&gt;QlikView keeps track of the number of records that have been previously read and loads only records added at the end of the file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG border="0" class="jiveImage jive-image" style="border-style: none; font-weight: inherit; font-style: inherit; font-family: inherit;" /&gt;&lt;/SPAN&gt;&lt;SPAN class="example" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Script Example:&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Buffer (Incremental) Load * From LogFile.txt (ansi, txt, delimiter is '\t', embedded labels);&lt;/SPAN&gt;&lt;/P&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor967" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Insert_only" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;Case 2: Insert Only (No Update or Delete)&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If the data resides in a database other than a simple log file the case 1 approach will not work. However, the problem can still be solved with minimum amount of extra work. The following conditions apply:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The data source can be any database. &lt;/LI&gt;&lt;LI&gt;QlikView loads records inserted in the database after the last script execution. &lt;/LI&gt;&lt;LI&gt;A field ModificationDate (or similar) is required for QlikView to recognize which records are new.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG border="0" class="jiveImage jive-image" style="border-style: none; font-weight: inherit; font-style: inherit; font-family: inherit;" /&gt;&lt;/SPAN&gt;&lt;SPAN class="example" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Script Example:&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AND ModificationTime &amp;lt; #$(BeginningThisExecTime)#;&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD;&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE QV_Table INTO File.QVD;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(The hash signs in the SQL WHERE clause define the beginning and end of a date. Check your database manual for the correct date syntax for your database.)&lt;/SPAN&gt;&lt;/P&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor968" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Insert_and_Update" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;Case 3: Insert and Update (No Delete)&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The next case is applicable when data in previously loaded records may have changed between script executions. The following conditions apply:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The data source can be any database. &lt;/LI&gt;&lt;LI&gt;QlikView loads records inserted into the database or updated in the database after the last script execution&lt;/LI&gt;&lt;LI&gt;A field ModificationDate (or similar) is required for QlikView to recognize which records are new. &lt;/LI&gt;&lt;LI&gt;A primary key field is required for QlikView to sort out updated records from the QVD file. &lt;/LI&gt;&lt;LI&gt;This solution will force the reading of the QVD file to standard mode (rather than optimized), which is still considerably faster than loading the entire database.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG border="0" class="jiveImage jive-image" style="border-style: none; font-weight: inherit; font-style: inherit; font-family: inherit;" /&gt;&lt;/SPAN&gt;&lt;SPAN class="example" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Script Example:&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#;&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT Exists(PrimaryKey);&lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE QV_Table INTO File.QVD;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;H3 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor969" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Insert__Update_and_Delete" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;Case 4: Insert, Update and Delete&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The most difficult case to handle is when records are actually deleted from the source database between script executions. The following conditions apply:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The data source can be any database. &lt;/LI&gt;&lt;LI&gt;QlikView loads records inserted into the database or updated in the database after the last script execution. &lt;/LI&gt;&lt;LI&gt;QlikView removes records deleted from the database after the last script execution. &lt;/LI&gt;&lt;LI&gt;A field ModificationDate (or similar) is required for QlikView to recognize which records are new. &lt;/LI&gt;&lt;LI&gt;A primary key field is required for QlikView to sort out updated records from the QVD file. &lt;/LI&gt;&lt;LI&gt;This solution will force the reading of the QVD file to standard mode (rather than optimized), which is still considerably faster than loading the entire database.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG border="0" class="jiveImage jive-image" style="border-style: none; font-weight: inherit; font-style: inherit; font-family: inherit;" /&gt;&lt;/P&gt;&lt;P class="example" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Script Example:&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let ThisExecTime = Now( );&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;QV_Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT PrimaryKey, X, Y FROM DB_TABLE&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)#&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AND ModificationTime &amp;lt; #$(ThisExecTime)#;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate LOAD PrimaryKey, X, Y FROM File.QVD&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE NOT EXISTS(PrimaryKey);&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Inner Join SQL SELECT PrimaryKey FROM DB_TABLE;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If ScriptErrorCount = 0 then&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE QV_Table INTO File.QVD;&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let LastExecTime = ThisExecTime;&lt;/P&gt;&lt;P class="Code" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #808080;"&gt;&lt;SPAN class="PrimaryQVRelease" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;QlikView 11.20 SR6&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 19:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/988202#M336907</guid>
      <dc:creator>qepmalheiros</dc:creator>
      <dc:date>2015-10-20T19:11:35Z</dc:date>
    </item>
  </channel>
</rss>

