<?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 in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404724#M812899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 09:53:20 GMT</pubDate>
    <dc:creator>s10157754</dc:creator>
    <dc:date>2017-09-25T09:53:20Z</dc:date>
    <item>
      <title>Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404723#M812898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dear Qlikview Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would like to seek help from you on writing script for incremental load in Qlikview. I would just like to load the new data file into my QVD everyday instead of loading all the previous data again. So it will save the user a lot of time when dealing with huge amount of raw data in future. (I have saw quite a number of incremental load examples, but I have no idea on how to continue it from my current script) Any ideas from you all would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Basically, I have 3 Machines: 'Machine109', 'Machine149' and 'Machine162' respectively. Everyday these 3 Machines' data will be created in txt file format and store in a folder called "DataBase". I have already wrote a script to extract the raw data from this "DataBase" folder. So when user reload the QVD, it will automatically loop through all the txt files in that folder. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;(Everyday there will be 1 new txt file added for different Machines. The name of the txt file will stays the same except the date will be changing.) E.g:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Old txt file : Machine_109_03rd_Aug_2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;New txt file: Machine_109_04th_Aug_2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Attached "DataBase" Folder and my QVD for your reference. Thanks a lot for your precious time! ! !&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best Regards&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Qian Ning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404723#M812898</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404724#M812899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404724#M812899</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-09-25T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404725#M812900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Concerning the general incremental approach, just follow the many existing example, like&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/QVD_Incremental.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/QVD_Incremental.htm"&gt;Using QVD files for incremental load ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, the only special treatment needed is the handling of your data source, text files, with the update date encoded in the file name. So you would need to parse the file name to extract machine number and date and store this in your resulting table / QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking for new files, you need to determine the max date in your QVD (or maybe just Today(), if you plan for a daily reload and file delivery. &lt;/P&gt;&lt;P&gt;Now, when getting all filenames from your folder, skip the files with an older file date / date in file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, move all files already consumed to another folder, so you have only new files in the folder to read in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 10:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404725#M812900</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-25T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404726#M812901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your information. I did work on it for a couple of days and I had also followed some of the samples online(Including the one you mentioned above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I had faced difficulties on implementing the solution and add on to my current script. Could you provide me with more detailed information on how to write the script? Thanks a lot for your precious time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Qian Ning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 10:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404726#M812901</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-09-25T10:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404727#M812902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA attached a possible solution.&lt;/P&gt;&lt;P&gt;It creates a control.qvd that stores which and when &lt;SPAN style="font-size: 13.3333px;"&gt;files&amp;nbsp; &lt;/SPAN&gt;have been loaded.&lt;/P&gt;&lt;P&gt;It won´t load a file twice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 11:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404727#M812902</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-25T11:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404728#M812903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anjos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your script! It looks like working properly. However, After I change my directory path and run your script, there is no any data showing in my qilkview dashboard. May I know what is the problem behind? Thanks for your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Qian Ning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 11:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404728#M812903</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-09-25T11:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404729#M812904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This app stores a final qvd into your "Database" folder.&lt;/P&gt;&lt;P&gt;You can load it after all "calls"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404729#M812904</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-25T12:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404730#M812905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anjos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did tried to add a new txt file into one of my machine folders in database, and the script execute correctly which only shows the newly added txt file. However, when I was trying to load it after all my "calls", I realised that the "SummaryTable.QVD" was only showing the newly added data and all the history data were not included. The picture below shows the situation I was facing now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you soon!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Qian Ning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404730#M812905</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-09-25T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404731#M812906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please change to this code below and remove control.qvd and SummaryTable.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Scanfolder(Root)&lt;/P&gt;&lt;P&gt;let ControlQVD = left(Root,Index(Root,'\',-1))&amp;amp;'control.qvd';&lt;/P&gt;&lt;P&gt;Let SummaryQVD = left(Root,Index(Root,'\',-1))&amp;amp;'SummaryTable.qvd';&lt;/P&gt;&lt;P&gt;If FileSize(ControlQVD) then&lt;/P&gt;&lt;P&gt;control:load filename, timestamp from [$(ControlQVD)](qvd);&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;control:load '' as filename, now() as timestamp AutoGenerate 0; // EmptyTable&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each FileExtension in 'txt'&lt;/P&gt;&lt;P&gt;For each FoundFile in FileList(Root &amp;amp;'\Machine_???_????_???_2017.'&amp;amp; FileExtension)&lt;/P&gt;&lt;P&gt;Let t = alt(FieldIndex('filename','$(FoundFile)'),0);&lt;/P&gt;&lt;P&gt;if&amp;nbsp; t = 0 then&lt;/P&gt;&lt;P&gt;control: load '$(FoundFile)' as filename, now() as timestamp AutoGenerate 1; // Keeps record of this file;&lt;/P&gt;&lt;P&gt;SummaryTable:&lt;/P&gt;&lt;P&gt;LOAD @1 as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as ProductNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 as ProductModel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 as Result,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FileName(), '_', 2) as MachineNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FileName(), '_', 3) as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FileName(), '_', 4) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FileBaseName(), '_', 5) as Year&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; FROM [$(FoundFile)]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;endif &lt;/P&gt;&lt;P&gt;&amp;nbsp; Next FoundFile &lt;/P&gt;&lt;P&gt;Next FileExtension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if NoOfRows('control') &amp;gt; 0 then // table has been incremented?&lt;/P&gt;&lt;P&gt;store control into [$(ControlQVD)](qvd); &lt;/P&gt;&lt;P&gt;drop Table control;&lt;/P&gt;&lt;P&gt;Endif &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if NoOfRows('SummaryTable') &amp;gt; 0 then // table has been incremented?&lt;/P&gt;&lt;P&gt;If FileSize('$(SummaryQVD)') &amp;gt; 0 then&lt;/P&gt;&lt;P&gt;Concatenate(SummaryTable) load * from [$(SummaryQVD)](qvd);&lt;/P&gt;&lt;P&gt;Endif &lt;/P&gt;&lt;P&gt;store SummaryTable into [$(SummaryQVD)](qvd);&lt;/P&gt;&lt;P&gt;drop Table SummaryTable;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404731#M812906</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-25T12:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404732#M812907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anjos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience caused to you! My own mistake which disabled the field from displaying. Your script works perfectly for me! Thank you so much for your precious time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Qian Ning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404732#M812907</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2017-09-25T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404733#M812908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you´re welcome, friend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Qlikview/m-p/1404733#M812908</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-25T13:07:11Z</dc:date>
    </item>
  </channel>
</rss>

