<?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/159100#M33876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In general the script is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;MAX_HIST:&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 60px"&gt;LOAD max([Sales History Index]) as max_hist&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 60px"&gt;FROM [SalesHistory.qvd] (qvd);&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;let o=peek('max_hist', 0, MAX_HIST);&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Oct 2010 09:02:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-26T09:02:06Z</dc:date>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/159098#M33874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting my first incremental load using a QVD file and am about 99% of the way there.&lt;/P&gt;&lt;P&gt;My QVD file (SalesHistory.qvd) has a field called 'Sales History Index' and is simply a sequential number managed by the DB.&lt;/P&gt;&lt;P&gt;All I need to know is how to retrieve the maximum "Sales History Index'" from the SalesHistory.qvd file and then feed that value back into the SQL query. IE select SalesHistoryRecords from SalesHistoryTable where recnum is greater than the maximum "Sales History Index" value in the SalesHistory.qvd file.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Sales_History:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; recnum as [Sales History Index],&lt;BR /&gt; stock_namekey as [Stock NK],&lt;BR /&gt; debtor_namekey as [Store NK],&lt;BR /&gt; warehouse as [Warehouse],&lt;BR /&gt; transaction_date as [Sale Date],&lt;BR /&gt; month(transaction_date) as [Sales Month],&lt;BR /&gt; year(transaction_date) as [Sales Year],&lt;BR /&gt; quantity_sold_00 as [QTY Sold],&lt;BR /&gt; week(transaction_date) as Week,&lt;BR /&gt; invoice_time_0 as Hour,&lt;BR /&gt; unit_sale_value_inctax * quantity_sold_00 as [Sale Value],&lt;BR /&gt; unit_sale_value_inctax as [Unit Value];&lt;BR /&gt;&lt;BR /&gt;SQL SELECT recnum, stock_namekey, debtor_namekey, warehouse, transaction_date, quantity_sold_00, invoice_time_0, unit_sale_value_inctax&lt;BR /&gt;FROM sales_history&lt;BR /&gt;WHERE recnum &amp;gt; ???;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CONCATENATE&lt;BR /&gt;&lt;BR /&gt;LOAD * FROM SalesHistory.qvd (qvd);&lt;BR /&gt;&lt;BR /&gt;STORE Sales_History into SalesHistory.qvd;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 07:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/159098#M33874</guid>
      <dc:creator />
      <dc:date>2010-10-26T07:56:47Z</dc:date>
    </item>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/159099#M33875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It looks you need the number of records in the QVD file. That is&lt;/P&gt;&lt;P&gt;&lt;B&gt;let cntr=QvdNoOfRecords ('M.qvd')&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The SQL becomes .. &lt;B&gt;WHERE recnum &amp;gt; $(cntr) ..&lt;/B&gt;&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 08:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/159099#M33875</guid>
      <dc:creator />
      <dc:date>2010-10-26T08:23:41Z</dc:date>
    </item>
    <item>
      <title>Incremental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/159100#M33876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In general the script is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;MAX_HIST:&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 60px"&gt;LOAD max([Sales History Index]) as max_hist&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 60px"&gt;FROM [SalesHistory.qvd] (qvd);&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;let o=peek('max_hist', 0, MAX_HIST);&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 09:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load/m-p/159100#M33876</guid>
      <dc:creator />
      <dc:date>2010-10-26T09:02:06Z</dc:date>
    </item>
  </channel>
</rss>

