<?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 Re: Incremental load example in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110391#M628647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's to be expected. You were describing a solution with a Date field (e.g. Year+Month+Day) and a control variable that determines how many months the update should go back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the actual data only has a Year field. Which means that the solution for Year-Month-Day values will stop adding rows from your QVD as soon as it finds out that it already has a row for that particular year. The result will be that only one row per year will be loaded from the history file. Wrong granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fix your data and you will see that it works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 12:08:40 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-08-30T12:08:40Z</dc:date>
    <item>
      <title>Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110384#M628640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colleagues, good day!&lt;/P&gt;&lt;P&gt;I have some simple example to implement incremental load for main model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only two fields: Date and Sales.&lt;/P&gt;&lt;P&gt;Also i've created qvd with all start values from source file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need update this qvd file only for those dates, which month number i want to set in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vLoadPeriod=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vLoadPeriod=1, my qvd must update values for current month,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if vLoadPeriod=2, my qvd must update values for current month and previous,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if vLoadPeriod=3, &lt;SPAN style="font-size: 13.3333px;"&gt;my qvd must update values for current month, previous and pre previous,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Could you please help me with it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 05:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110384#M628640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T05:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110385#M628641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you check this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="f kv _SWb" style="color: #808080; font-family: arial, sans-serif; font-size: small;"&gt;&lt;A href="https://www.resultdata.com/three-types-of-qlikview-incremental-loads/" title="https://www.resultdata.com/three-types-of-qlikview-incremental-loads/"&gt;https://www.resultdata.com/three-types-of-qlikview-incremental-loads/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 05:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110385#M628641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T05:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110386#M628642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, but this code works somehow strangely..&lt;/P&gt;&lt;P&gt;Please, see attached files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110386#M628642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110387#M628643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9531"&gt;Incremental Load in Qlikview - Sources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110387#M628643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110388#M628644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;It nice works if i use some values from inline load.&lt;/P&gt;&lt;P&gt;But incremental load from xlsx works not correctly in my example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110388#M628644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110389#M628645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few steps, just to give you an idea on how to create a solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make sure that vLoadPeriod is numerical and &amp;gt; 0&lt;/LI&gt;&lt;LI&gt;From Excel, load all rows &lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Date &amp;gt;= AddMonths(MonthStart(Today()),1-vLoadPeriod)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;From QVD, add all rows that &lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Not Exists(Date)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Store the resident table into the existing QVD&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 11:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110389#M628645</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-08-30T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110390#M628646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for advice!&lt;/P&gt;&lt;P&gt;All of these steps are implemented, but in result i have not correct sales for "old" data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 11:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110390#M628646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110391#M628647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's to be expected. You were describing a solution with a Date field (e.g. Year+Month+Day) and a control variable that determines how many months the update should go back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the actual data only has a Year field. Which means that the solution for Year-Month-Day values will stop adding rows from your QVD as soon as it finds out that it already has a row for that particular year. The result will be that only one row per year will be loaded from the history file. Wrong granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fix your data and you will see that it works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110391#M628647</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-08-30T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110392#M628648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first In attached files i try to load only "not updated" data by operator Which not exists (Year) (for understanding how incremental load works), only after that i will works with rollback condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i don't understand, why script doesn't work with Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110392#M628648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load example</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110393#M628649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script actually does work. But since it checks whether the year in the current row from your QVD already exists (in order to avoid overwriting update records), and since Exists() operates on fields, it will find the same year from the previous row and stop loading additional rows from that same year. Every row loaded through a LOAD statement will immediately update the field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your history file contains a lot of rows from both 2015 and 2016, the Exists() will force the load of a single row for every year (actually the first one in the file). All others will be thrown away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were using a real date field, the incremental load would check on date values. And since we assume that both the update and the history file keep only on row per date value, the incremental load would work just fine. But not with years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-example/m-p/1110393#M628649</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-08-30T12:52:17Z</dc:date>
    </item>
  </channel>
</rss>

