<?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 Increamental Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222402#M75082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil,&lt;/P&gt;&lt;P&gt;If i understood your question below is the answer.&lt;/P&gt;&lt;P&gt;1st create a variable in edit script.&lt;/P&gt;&lt;P&gt;Let VLastReloadTime = ReloadTime();&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;"Sales Order",&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;From ...............;&lt;/P&gt;&lt;P&gt;Store Table1 into &lt;D&gt;;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;After creating QVD comment the above code.&lt;/P&gt;&lt;P&gt;Next step will be taking data from DB directly when the Date field which is in table is greater than the last executed date which we have stored in variable (i.e VLastReloadTime) .&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;"Sales Order",&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;From ............... where Date &amp;gt; $(VLastReloadTime);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;"Sales Order",&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;From &lt;D&gt; where not exist(Sales Order,Sales Order);&lt;/D&gt;&lt;/P&gt;&lt;P&gt;again store the Table1 data in table1.qvd (i.e replace the old table1.qvd)&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;-Peterson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 19:16:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-13T19:16:27Z</dc:date>
    <item>
      <title>Increamental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222400#M75080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend ,&lt;/P&gt;&lt;P&gt;I need help Regarding Increamental Load.&lt;/P&gt;&lt;P&gt;Example : On 1st June Data in QVD&lt;/P&gt;&lt;DIV class="chat in"&gt;&lt;DIV class="msg Nth"&gt;Date Sales Order Qty&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;1.1.2010 S11001 1000&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;On 5th June Updated Existing Sales Order in ERP.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;DIV class="msg Nth"&gt;Date Sales Order Qty&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;5.1.2010 S11001 1500&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;In Final QVD Sales Order 's Quantity Shoulde be 1500.&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;Regards&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;Sunil Jain.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="msg Nth"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="chat out msg 1st icon"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 18:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222400#M75080</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-07-13T18:43:57Z</dc:date>
    </item>
    <item>
      <title>Increamental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222401#M75081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this can help you for some idea!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Script below shows you a simple incremental load. This will carry out the basic function of&lt;/P&gt;&lt;P&gt;inserting/adding new data. For more complex incremental loads such as UPDATE and DELETE. Please refer&lt;/P&gt;&lt;P&gt;to the reference manual.&lt;/P&gt;&lt;P&gt;//Find the maximum id or latest date etc to pass to the variable and subsequently the&lt;/P&gt;&lt;P&gt;where clause of the data load&lt;/P&gt;&lt;P&gt;MaxKeyLoad:&lt;/P&gt;&lt;P&gt;LOAD Max(PrimaryKey) as MaxID&lt;/P&gt;&lt;P&gt;FROM MyData.qvd (qvd);&lt;/P&gt;&lt;P&gt;//Peek into the MaxHeadLoad to get the latest value, in this case the MAX load above will&lt;/P&gt;&lt;P&gt;//only bring back 1v ow so the 0 in the variable tells it to bring the first row.&lt;/P&gt;&lt;P&gt;Let MaxID = peek('MaxID',0,MaxKeyLoad);&lt;/P&gt;&lt;P&gt;//Connect to your data source&lt;/P&gt;&lt;P&gt;CONNECT TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;);&lt;/P&gt;&lt;P&gt;//Run the data load to pull data based on the variable to find the latest / newest row&lt;/P&gt;&lt;P&gt;MyData:&lt;/P&gt;&lt;P&gt;LOAD PrimaryKey,&lt;/P&gt;&lt;P&gt;Column1,&lt;/P&gt;&lt;P&gt;Column2,&lt;/P&gt;&lt;P&gt;Column3,&lt;/P&gt;&lt;P&gt;Column4;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM DATABASE.MYDATA&lt;/P&gt;&lt;P&gt;Where PrimaryKey &amp;gt; $(MaxID);&lt;/P&gt;&lt;P&gt;//Append the new updated data to the existing historical qvd file&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;LOAD * FROM MyData.qvd (qvd);&lt;/P&gt;&lt;P&gt;//Store the new larger qvd file&lt;/P&gt;&lt;P&gt;Store MyData into MyData.qvd;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 19:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222401#M75081</guid>
      <dc:creator />
      <dc:date>2010-07-13T19:13:54Z</dc:date>
    </item>
    <item>
      <title>Increamental Load</title>
      <link>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222402#M75082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil,&lt;/P&gt;&lt;P&gt;If i understood your question below is the answer.&lt;/P&gt;&lt;P&gt;1st create a variable in edit script.&lt;/P&gt;&lt;P&gt;Let VLastReloadTime = ReloadTime();&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;"Sales Order",&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;From ...............;&lt;/P&gt;&lt;P&gt;Store Table1 into &lt;D&gt;;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;After creating QVD comment the above code.&lt;/P&gt;&lt;P&gt;Next step will be taking data from DB directly when the Date field which is in table is greater than the last executed date which we have stored in variable (i.e VLastReloadTime) .&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;"Sales Order",&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;From ............... where Date &amp;gt; $(VLastReloadTime);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;"Sales Order",&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;From &lt;D&gt; where not exist(Sales Order,Sales Order);&lt;/D&gt;&lt;/P&gt;&lt;P&gt;again store the Table1 data in table1.qvd (i.e replace the old table1.qvd)&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;-Peterson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 19:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increamental-Load/m-p/222402#M75082</guid>
      <dc:creator />
      <dc:date>2010-07-13T19:16:27Z</dc:date>
    </item>
  </channel>
</rss>

