<?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 Key Fiel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-Key-Fiel/m-p/2094853#M1224224</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Today I've below data in my QVD.&lt;/P&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price2&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Main source the Price's of ID '1' has been updated to below.&lt;/P&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price2&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my requirement is instead of updated the QVD with new Price's I would like to see the two lines with the new and old price like below in the QVD.&lt;/P&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Price1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Price2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Price3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried below code but it is not working.&lt;/P&gt;
&lt;P&gt;QVD:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;ID,Price1,Price2,Price3&lt;BR /&gt;1,100,100,100&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;MaxQVD:&lt;BR /&gt;LOAD max(ID) as MaxID&lt;BR /&gt;Resident QVD;&lt;/P&gt;
&lt;P&gt;Let vMaxID = peek('MaxID',-1);&lt;/P&gt;
&lt;P&gt;DROP Table QVD;&lt;/P&gt;
&lt;P&gt;MainNewData:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;ID,Price1,Price2,Price3&lt;BR /&gt;1,200,200,200&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Concatenate&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;ID,Price1,Price2,Price3&lt;BR /&gt;1,100,100,100&lt;BR /&gt;] where ID&amp;gt;$(vMaxID);&lt;/P&gt;
&lt;P&gt;STORE MainNewData Incremental.QVD(qvd);&lt;/P&gt;
&lt;P&gt;Drop Table MainNewData ;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 11:40:26 GMT</pubDate>
    <dc:creator>vikasshana</dc:creator>
    <dc:date>2023-07-18T11:40:26Z</dc:date>
    <item>
      <title>Incremental load using Key Fiel</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-Key-Fiel/m-p/2094853#M1224224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Today I've below data in my QVD.&lt;/P&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price2&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Main source the Price's of ID '1' has been updated to below.&lt;/P&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price2&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Price3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my requirement is instead of updated the QVD with new Price's I would like to see the two lines with the new and old price like below in the QVD.&lt;/P&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Price1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Price2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Price3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;100&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;200&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried below code but it is not working.&lt;/P&gt;
&lt;P&gt;QVD:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;ID,Price1,Price2,Price3&lt;BR /&gt;1,100,100,100&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;MaxQVD:&lt;BR /&gt;LOAD max(ID) as MaxID&lt;BR /&gt;Resident QVD;&lt;/P&gt;
&lt;P&gt;Let vMaxID = peek('MaxID',-1);&lt;/P&gt;
&lt;P&gt;DROP Table QVD;&lt;/P&gt;
&lt;P&gt;MainNewData:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;ID,Price1,Price2,Price3&lt;BR /&gt;1,200,200,200&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Concatenate&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;ID,Price1,Price2,Price3&lt;BR /&gt;1,100,100,100&lt;BR /&gt;] where ID&amp;gt;$(vMaxID);&lt;/P&gt;
&lt;P&gt;STORE MainNewData Incremental.QVD(qvd);&lt;/P&gt;
&lt;P&gt;Drop Table MainNewData ;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 11:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-Key-Fiel/m-p/2094853#M1224224</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2023-07-18T11:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load using Key Fiel</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-using-Key-Fiel/m-p/2094861#M1224225</link>
      <description>&lt;P&gt;Given that there doesn't seem to be any indicator that the row has updated, you can't really do an incremental load here, near as I can tell. You would need to load all of the data from both sources to find out if any IDs have had their values updated, at which point you can just Load Distinct on the concatenation of both sources (which would eliminate any duplicate ID rows which means nothing has been updated).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 11:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-using-Key-Fiel/m-p/2094861#M1224225</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-07-18T11:53:44Z</dc:date>
    </item>
  </channel>
</rss>

