<?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/Update in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Update/m-p/2029090#M1222296</link>
    <description>&lt;P&gt;Hi, I am running into issues where I am unable to update/insert data into my current QVD based on updated data from a query.&lt;/P&gt;
&lt;P&gt;My code is as follows (I have tried a few things and I still can't get it to work):&lt;/P&gt;
&lt;P&gt;Load my current QVD (all the fields are identical, the Locations table does have a lot more fields but that is because there is data coming from other queries as well.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    Locations:    
    Load
    	*       
	From
    	OLD QVD Information;        
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Run SQL to find updated information and join that with my current QVD through resident Locations&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Stock:
    Load
        productcode as [Product Code],
        exstock,
        dtc
        "date_updated",
        "time_updated";        
    SQL Select STOCKUPDATED.ProductCode,
        STOCKUPDATED.exstock,
        STOCKUPDATED.dtc
        STOCKUPDATED.date_updated,
        STOCKUPDATED.time_updated
    FROM STOCKUPDATED
    WHERE STOCKUPDATED.date_updated &amp;gt;= DateValue('$(vLastRunDate)') and STOCKUPDATED.Time_Updated &amp;gt;= TimeValue('$(vLastRunTime)');
    
    left Join(Stock)
    Load
        "Product Code"
	Resident Locations;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;I then load all data from my OLD QVD then concatenate the updated information to that but then it doesn't update (does nothing pretty much)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Final:
	NoConcatenate
	Load * Resident Locations;
    
    Concatenate(Final)
    Load * Resident Stock Where Not Exists("Product Code");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;I've tried left joins, joins, concatenate at different parts, new fields, multiple things but nothing seems to update the data. I even tried loading the Stock (updated one) table then concatenate that with my OLD QVD but that only pulled through my updated values, where i want both my updated and old QVD to be on there.&lt;/P&gt;
&lt;P&gt;Am i missing something here?&amp;nbsp; Any help appreciated!!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 03:52:03 GMT</pubDate>
    <dc:creator>Diinkant</dc:creator>
    <dc:date>2023-01-24T03:52:03Z</dc:date>
    <item>
      <title>Incremental Load/Update</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Update/m-p/2029090#M1222296</link>
      <description>&lt;P&gt;Hi, I am running into issues where I am unable to update/insert data into my current QVD based on updated data from a query.&lt;/P&gt;
&lt;P&gt;My code is as follows (I have tried a few things and I still can't get it to work):&lt;/P&gt;
&lt;P&gt;Load my current QVD (all the fields are identical, the Locations table does have a lot more fields but that is because there is data coming from other queries as well.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    Locations:    
    Load
    	*       
	From
    	OLD QVD Information;        
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Run SQL to find updated information and join that with my current QVD through resident Locations&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Stock:
    Load
        productcode as [Product Code],
        exstock,
        dtc
        "date_updated",
        "time_updated";        
    SQL Select STOCKUPDATED.ProductCode,
        STOCKUPDATED.exstock,
        STOCKUPDATED.dtc
        STOCKUPDATED.date_updated,
        STOCKUPDATED.time_updated
    FROM STOCKUPDATED
    WHERE STOCKUPDATED.date_updated &amp;gt;= DateValue('$(vLastRunDate)') and STOCKUPDATED.Time_Updated &amp;gt;= TimeValue('$(vLastRunTime)');
    
    left Join(Stock)
    Load
        "Product Code"
	Resident Locations;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;I then load all data from my OLD QVD then concatenate the updated information to that but then it doesn't update (does nothing pretty much)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Final:
	NoConcatenate
	Load * Resident Locations;
    
    Concatenate(Final)
    Load * Resident Stock Where Not Exists("Product Code");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;I've tried left joins, joins, concatenate at different parts, new fields, multiple things but nothing seems to update the data. I even tried loading the Stock (updated one) table then concatenate that with my OLD QVD but that only pulled through my updated values, where i want both my updated and old QVD to be on there.&lt;/P&gt;
&lt;P&gt;Am i missing something here?&amp;nbsp; Any help appreciated!!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 03:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Update/m-p/2029090#M1222296</guid>
      <dc:creator>Diinkant</dc:creator>
      <dc:date>2023-01-24T03:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load/Update</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Update/m-p/2029565#M1222320</link>
      <description>&lt;P&gt;Bump, anyone help please&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 20:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Update/m-p/2029565#M1222320</guid>
      <dc:creator>Diinkant</dc:creator>
      <dc:date>2023-01-24T20:33:46Z</dc:date>
    </item>
  </channel>
</rss>

