<?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 not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636553#M446821</link>
    <description>&lt;P&gt;Hi can anyone help me with this? I am trying to do an incremental load, I followed the guide here,&amp;nbsp;&lt;A href="https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/" target="_blank" rel="noopener"&gt;https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/&lt;/A&gt;&amp;nbsp; and adjusted it so that it can work with my QlikView application, my code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SalesTarget:
//Load Sales Targets data from a previously created Sales Targets QVD.
LOAD Year, 
     Month, 
     ISBN, 
     [AM Target], 
     [DW Target], 
     [JM Target], 
     [BL Target], 
     [JC Target], 
     [IW Target],
     SalesTargetPeriod
FROM
[E:\Qlikdata\IP1 Insight Pack 1.4\Data - TRN\TA.SalesTargets.qvd]
(qvd);

//Find Latest Date in Year/Month so we know where to continue loading new targets from.
Last_YearMonth:
LOAD MAX([Year] &amp;amp; [Month]) as MaxSalesTargetPeriod
Resident SalesTarget;

//Store this date into a variable so that we can work with it.
Let Latest_Target_Date = Peek('MaxSalesTargetPeriod',0,'Latest_Target_Date');

//Drop Table.
Drop Table SalesTarget;

//Load Incremental Data.
Incremental:
LOAD Year, 
     Month, 
     ISBN, 
     [AM Target], 
     [DW Target], 
     [JM Target], 
     [BL Target], 
     [JC Target], 
     [IW Target],
     [Year] &amp;amp; [Month] as SalesTargetPeriod
FROM
[E:\Qlikdata\IP1 Insight Pack 1.4\Targets\Targets October 19.xls]
(biff, embedded labels, table is Sheet1$) WHERE SalesTargetPeriod &amp;gt; $(Latest_Target_Date);

//Concatenate to the pre-existing QVD.
CONCATENATE
LOAD Year,
	 Month,
	 ISBN,
	 [AM Target],
	 [DW Target],
	 [JM Target],
	 [BL Target],
	 [JC Target],
	 [IW Target],
	 SalesTargetPeriod
FROM 
[E:\Qlikdata\IP1 Insight Pack 1.4\Data - TRN\TA.SalesTargets.qvd]
(qvd);

//Replace old QVD.
Store Incremental into TA.SalesTargets.qvd(qvd);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run this, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Field not found - &amp;lt;SalesTargetPeriod&amp;gt;
Incremental:
LOAD Year, 
     Month, 
     ISBN, 
     [AM Target], 
     [DW Target], 
     [JM Target], 
     [BL Target], 
     [JC Target], 
     [IW Target],
     [Year] &amp;amp; [Month] as SalesTargetPeriod
FROM
[E:\Qlikdata\IP1 Insight Pack 1.4\Targets\Targets October 19.xls]
(biff, embedded labels, table is Sheet1$) WHERE SalesTargetPeriod &amp;gt; 201909&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, from what I can see, I have defined SalesTargetPeriod, so not sure why QlikView is saying it isn't found?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 09:37:14 GMT</pubDate>
    <dc:creator>Ahmed_Turnaround</dc:creator>
    <dc:date>2019-10-17T09:37:14Z</dc:date>
    <item>
      <title>Incremental Load not working</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636553#M446821</link>
      <description>&lt;P&gt;Hi can anyone help me with this? I am trying to do an incremental load, I followed the guide here,&amp;nbsp;&lt;A href="https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/" target="_blank" rel="noopener"&gt;https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/&lt;/A&gt;&amp;nbsp; and adjusted it so that it can work with my QlikView application, my code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SalesTarget:
//Load Sales Targets data from a previously created Sales Targets QVD.
LOAD Year, 
     Month, 
     ISBN, 
     [AM Target], 
     [DW Target], 
     [JM Target], 
     [BL Target], 
     [JC Target], 
     [IW Target],
     SalesTargetPeriod
FROM
[E:\Qlikdata\IP1 Insight Pack 1.4\Data - TRN\TA.SalesTargets.qvd]
(qvd);

//Find Latest Date in Year/Month so we know where to continue loading new targets from.
Last_YearMonth:
LOAD MAX([Year] &amp;amp; [Month]) as MaxSalesTargetPeriod
Resident SalesTarget;

//Store this date into a variable so that we can work with it.
Let Latest_Target_Date = Peek('MaxSalesTargetPeriod',0,'Latest_Target_Date');

//Drop Table.
Drop Table SalesTarget;

//Load Incremental Data.
Incremental:
LOAD Year, 
     Month, 
     ISBN, 
     [AM Target], 
     [DW Target], 
     [JM Target], 
     [BL Target], 
     [JC Target], 
     [IW Target],
     [Year] &amp;amp; [Month] as SalesTargetPeriod
FROM
[E:\Qlikdata\IP1 Insight Pack 1.4\Targets\Targets October 19.xls]
(biff, embedded labels, table is Sheet1$) WHERE SalesTargetPeriod &amp;gt; $(Latest_Target_Date);

//Concatenate to the pre-existing QVD.
CONCATENATE
LOAD Year,
	 Month,
	 ISBN,
	 [AM Target],
	 [DW Target],
	 [JM Target],
	 [BL Target],
	 [JC Target],
	 [IW Target],
	 SalesTargetPeriod
FROM 
[E:\Qlikdata\IP1 Insight Pack 1.4\Data - TRN\TA.SalesTargets.qvd]
(qvd);

//Replace old QVD.
Store Incremental into TA.SalesTargets.qvd(qvd);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run this, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Field not found - &amp;lt;SalesTargetPeriod&amp;gt;
Incremental:
LOAD Year, 
     Month, 
     ISBN, 
     [AM Target], 
     [DW Target], 
     [JM Target], 
     [BL Target], 
     [JC Target], 
     [IW Target],
     [Year] &amp;amp; [Month] as SalesTargetPeriod
FROM
[E:\Qlikdata\IP1 Insight Pack 1.4\Targets\Targets October 19.xls]
(biff, embedded labels, table is Sheet1$) WHERE SalesTargetPeriod &amp;gt; 201909&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, from what I can see, I have defined SalesTargetPeriod, so not sure why QlikView is saying it isn't found?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636553#M446821</guid>
      <dc:creator>Ahmed_Turnaround</dc:creator>
      <dc:date>2019-10-17T09:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load not working</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636558#M446823</link>
      <description>&lt;P&gt;I think I've fixed this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed this code here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(biff, embedded labels, table is Sheet1$) WHERE SalesTargetPeriod &amp;gt; $(Latest_Target_Date);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(biff, embedded labels, table is Sheet1$) WHERE [Year] &amp;amp; [Month] &amp;gt; $(Latest_Target_Date);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to have dropped the file into the folder where the QVD lives, which isn't ideal, but I think this is an easy fix.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636558#M446823</guid>
      <dc:creator>Ahmed_Turnaround</dc:creator>
      <dc:date>2019-10-17T09:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load not working</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636560#M446824</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You are getting that error because the field&amp;nbsp;SalesTargetPeriod does not exist in the spreadsheet you will have to use the Year and Month fields.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636560#M446824</guid>
      <dc:creator>atoz1158</dc:creator>
      <dc:date>2019-10-17T09:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load not working</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636563#M446825</link>
      <description>&lt;P&gt;in the excel file, field SalesTargetPeriod is not existing, so you need to declare it by month and year.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636563#M446825</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2019-10-17T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load not working</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636564#M446826</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41438"&gt;@atoz1158&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28859"&gt;@martinpohl&lt;/a&gt;&amp;nbsp;. I realised this shortly after I raised the case!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doh!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 09:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-not-working/m-p/1636564#M446826</guid>
      <dc:creator>Ahmed_Turnaround</dc:creator>
      <dc:date>2019-10-17T09:40:46Z</dc:date>
    </item>
  </channel>
</rss>

