<?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 using QVD files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225143#M77482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My datasource is locally store excel file can you please tell me how I can put where clause with last exce time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 11:23:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-01T11:23:50Z</dc:date>
    <item>
      <title>Incremental load using QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225141#M77480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody provide the complete script example for performing incremenatl load using QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225141#M77480</guid>
      <dc:creator />
      <dc:date>2010-10-01T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Incremental load using QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225142#M77481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls check Attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225142#M77481</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-10-01T10:52:35Z</dc:date>
    </item>
    <item>
      <title>Incremental load using QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225143#M77482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My datasource is locally store excel file can you please tell me how I can put where clause with last exce time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 11:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225143#M77482</guid>
      <dc:creator />
      <dc:date>2010-10-01T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Incremental load using QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225144#M77483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry For Previous example.&lt;/P&gt;&lt;P&gt;But pls try attached example of increamental load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 11:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225144#M77483</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-10-01T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Incremental load using QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225145#M77484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SEND ME ONLY SCRIPT AS I AM NOT ABLE OPEN THE QVW FILE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 13:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225145#M77484</guid>
      <dc:creator />
      <dc:date>2010-10-01T13:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225146#M77485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;////////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;// Incremental logic for ADDITION of RECORDS in source only&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;// This logic doesnt cover UPDATIONs and DELETIONs in source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;///////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;/////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;// Step 0:&lt;/STRONG&gt; You should always pick a "Change Data Capture" (CDC) Column and maintain it from the source to the target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// In our example, DATE_OF_SALE is the CDC column&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;// Step 1: &lt;/STRONG&gt;Pick the Max(CDC Column) from the QVD file and store it in a one column, one row Resident table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// For initial loads, this will not work, so included a logic to pull full load for the first time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;If (IsNull(FileSize('$(v_Home_Path)\Incremental load\Incremental.qvd'))) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// Do nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;MAX_DATE_TABLE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;LOAD Date#(max(DATE_OF_SALE),'MM/DD/YYYY') AS Max_date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;FROM $(v_Home_Path)\Incremental load\Incremental.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;// Step 2:&lt;/STRONG&gt; Use the Peek function to pull in the Max date into a variable called the CDC Variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// Use LET statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;IF(Isnull(v_Max_Date)) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// Do nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;LET v_Max_Date = peek('Max_date',0,MAX_DATE_TABLE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;// Step 3:&lt;/STRONG&gt; If the variable contains NULL,&amp;nbsp; then it means that the QVD is empty, so pull the entire data from the source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// If the variable isn't NULL, then pull only those records from the source whose CDC column value is greater than the CDC Variable's value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// Store this data in a INCREMENTAL RESIDENT TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// Concatenate this with the "Full Resident Load from the QVD"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;// Now STORE the concatenated resident table into the QVD again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;IF (Isnull(v_Max_Date)) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;INITIAL_LOAD_SALE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;LOAD DATE_OF_SALE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNITS_SOLD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;$(v_Home_Path)\Incremental load\Test Data.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;STORE INITIAL_LOAD_SALE INTO $(v_Home_Path)\Incremental load\Incremental.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;INCREMENTAL_SALE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;LOAD DATE_OF_SALE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNITS_SOLD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;$(v_Home_Path)\Incremental load\Test Data.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;WHERE DATE_OF_SALE &amp;gt; $(v_Max_Date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;FULL_SALE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Concatenate (INCREMENTAL_SALE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;LOAD DATE_OF_SALE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNITS_SOLD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;$(v_Home_Path)\Incremental load\Incremental.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;STORE INCREMENTAL_SALE INTO $(v_Home_Path)\Incremental load\Incremental.qvd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 23:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-QVD-files/m-p/225146#M77485</guid>
      <dc:creator>jansen28</dc:creator>
      <dc:date>2012-04-26T23:56:59Z</dc:date>
    </item>
  </channel>
</rss>

