<?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 Incremental Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355802#M132081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I posted this in the newbie forum but haven't got a response so far. So, I am posting here. Sorry if this is still need to go to the newbie forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load data greater than a certain date as incremental to the previous load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The step I followed is &lt;/P&gt;&lt;P&gt;1. Stored the previous load as a qvd&lt;/P&gt;&lt;P&gt;2. Load the previous qvd&lt;/P&gt;&lt;P&gt;3. Get max date from previous qvd&lt;/P&gt;&lt;P&gt;4. Load the new data (csv file) where date is greater than max date from previous loaded qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error field &amp;lt;vMax&amp;gt; not found. Below is the script. Please note I had copied codes from posts related to incremental load so not sure if there is a better and easy way to do what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;LOAD * from Sales_Fact.qvd (qvd); /*This qvd has data as of&amp;nbsp; week 4-14-12) */&lt;BR /&gt;Res:&lt;BR /&gt;LOAD Max(%_Day_Date_ID) as MaxDate&lt;BR /&gt;RESIDENT Temp;&lt;BR /&gt;let vMax=peek('MaxDate',-1,'Temp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;BR /&gt;Sales_Fact:&lt;BR /&gt;LOAD TEXT(Terr_id) as %_Terr_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT(Brand) as %_Brand_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(w_date) as %_Day_Date_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(sales) as FCT_sales&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[sales_inputs - we4-20-12.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;BR /&gt;WHERE&lt;BR /&gt;DATE(w_date) &amp;gt; vMax;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD * from Sales_Fact.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 22:18:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-16T22:18:01Z</dc:date>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355802#M132081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I posted this in the newbie forum but haven't got a response so far. So, I am posting here. Sorry if this is still need to go to the newbie forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load data greater than a certain date as incremental to the previous load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The step I followed is &lt;/P&gt;&lt;P&gt;1. Stored the previous load as a qvd&lt;/P&gt;&lt;P&gt;2. Load the previous qvd&lt;/P&gt;&lt;P&gt;3. Get max date from previous qvd&lt;/P&gt;&lt;P&gt;4. Load the new data (csv file) where date is greater than max date from previous loaded qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error field &amp;lt;vMax&amp;gt; not found. Below is the script. Please note I had copied codes from posts related to incremental load so not sure if there is a better and easy way to do what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;LOAD * from Sales_Fact.qvd (qvd); /*This qvd has data as of&amp;nbsp; week 4-14-12) */&lt;BR /&gt;Res:&lt;BR /&gt;LOAD Max(%_Day_Date_ID) as MaxDate&lt;BR /&gt;RESIDENT Temp;&lt;BR /&gt;let vMax=peek('MaxDate',-1,'Temp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;BR /&gt;Sales_Fact:&lt;BR /&gt;LOAD TEXT(Terr_id) as %_Terr_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT(Brand) as %_Brand_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(w_date) as %_Day_Date_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(sales) as FCT_sales&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[sales_inputs - we4-20-12.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;BR /&gt;WHERE&lt;BR /&gt;DATE(w_date) &amp;gt; vMax;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD * from Sales_Fact.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 22:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355802#M132081</guid>
      <dc:creator />
      <dc:date>2012-05-16T22:18:01Z</dc:date>
    </item>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355803#M132082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Go to "settings"-&amp;gt; "Document Properties-&amp;gt; "triggers" -&amp;gt; "on post reload"-&amp;gt; add action-&amp;gt;"add"-&amp;gt; "external" -&amp;gt; set variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in this variable set something like this vMaxDate= max(DATE_FIELD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this variable in your load script for the max date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only difference, in this case you will have to reload the application twice.&lt;/P&gt;&lt;P&gt;On the first attempt, max date will be stored in this variable, in the next reload it will be utilised as the incremental load criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 22:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355803#M132082</guid>
      <dc:creator />
      <dc:date>2012-05-16T22:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355804#M132083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add $() around the variable reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE DATE(w_date) &amp;gt; $(vMax)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;You may also want to try the incremental load routines provide by &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcomponents.org"&gt;http://qlikviewcomponents.org&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 06:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355804#M132083</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-05-17T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355805#M132084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution which was spot on. Identifying the variable with $ sign did it. Further, I needed to drop the temp tables to make it work right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Bikash for your idea. I never had to use it as it was in the end a minor issue with referencing variable names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 15:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355805#M132084</guid>
      <dc:creator />
      <dc:date>2012-05-17T15:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355806#M132085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also published a blog post on incremental loads that may be of assistance: &lt;A class="loading" href="http://bit.ly/VvY4MN" title="http://bit.ly/VvY4MN"&gt;http://bit.ly/VvY4MN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 19:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355806#M132085</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-01-25T19:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355807#M132086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepakrajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u so much............its very helpful to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Munirathnam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 14:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/355807#M132086</guid>
      <dc:creator>rathnam_qv</dc:creator>
      <dc:date>2013-07-06T14:10:30Z</dc:date>
    </item>
  </channel>
</rss>

