<?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 Partial Reload accumulating data but based on the same source file changing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-Reload-accumulating-data-but-based-on-the-same-source/m-p/310854#M114778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt; i`m facing with the problem how to code accumulative partial reloads where source of new data is &lt;BR /&gt; the same file named&amp;nbsp; 'src.csv' and is ovverwiritten by other process with new data every hour. QV application &lt;BR /&gt; should start partial reload every hour and appending new content of 'src.csv' (adding to data info what time &lt;BR /&gt; they were generated) but still keeping old data but not older than 14 days.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; I`ve coded so far sth like below:&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SET HistoricDays = 14;&lt;/P&gt;&lt;P&gt;LET ftime = FileTime('src.csv');&lt;/P&gt;&lt;P&gt;LET minDate = Date#((Date(today())-$(HistoricDays)),'YYYY-MM-DD'); // lowest historical date to keep in datamodel at parial reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;// load incremental data from changing src.csv file&lt;/P&gt;&lt;P&gt;Departures_tmp:&lt;/P&gt;&lt;P&gt;add LOAD &lt;/P&gt;&lt;P&gt;'$(ftime)' as D_CREATION_DATE_TIME,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date#(left('$(ftime)',10),'YYYY-MM-DD') as D_CREATION_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;src.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1250, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// remove data older than 14 days (minDate) from the table at partial reload.&lt;/P&gt;&lt;P&gt;Departures_tmp2:&lt;/P&gt;&lt;P&gt;replace LOAD&lt;/P&gt;&lt;P&gt;D_CREATION_DATE_TIME,&lt;/P&gt;&lt;P&gt;D_CREATION_DATE,&lt;/P&gt;&lt;P&gt;data1,&lt;/P&gt;&lt;P&gt;data2,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT Departures_tmp where Date#(D_CREATION_DATE) &amp;gt; $(minDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Departures_tmp;&lt;/P&gt;&lt;P&gt;//-------------------------------------------------------------------------------------- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I trigger 'partial reload':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add LOAD works fine and appends new data into existing ones.&lt;/P&gt;but 'replace LOAD' seems does not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;, it looks like it loads only 'fresh' data from src.csv&lt;BR /&gt;(but oryginaly it bases on RESIDENT Departures_tmp table). I`ve tried replace 'replace LOAD' with 'add LOAD' &lt;BR /&gt; but it does not work eather.&lt;BR /&gt; &lt;BR /&gt;Does any one have a good Idea to overcome this ?&lt;BR /&gt; &lt;BR /&gt; Cheers.&lt;BR /&gt;&lt;BR /&gt; &lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 11:33:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-27T11:33:17Z</dc:date>
    <item>
      <title>Partial Reload accumulating data but based on the same source file changing</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Reload-accumulating-data-but-based-on-the-same-source/m-p/310854#M114778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt; i`m facing with the problem how to code accumulative partial reloads where source of new data is &lt;BR /&gt; the same file named&amp;nbsp; 'src.csv' and is ovverwiritten by other process with new data every hour. QV application &lt;BR /&gt; should start partial reload every hour and appending new content of 'src.csv' (adding to data info what time &lt;BR /&gt; they were generated) but still keeping old data but not older than 14 days.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; I`ve coded so far sth like below:&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SET HistoricDays = 14;&lt;/P&gt;&lt;P&gt;LET ftime = FileTime('src.csv');&lt;/P&gt;&lt;P&gt;LET minDate = Date#((Date(today())-$(HistoricDays)),'YYYY-MM-DD'); // lowest historical date to keep in datamodel at parial reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;// load incremental data from changing src.csv file&lt;/P&gt;&lt;P&gt;Departures_tmp:&lt;/P&gt;&lt;P&gt;add LOAD &lt;/P&gt;&lt;P&gt;'$(ftime)' as D_CREATION_DATE_TIME,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date#(left('$(ftime)',10),'YYYY-MM-DD') as D_CREATION_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;src.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1250, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// remove data older than 14 days (minDate) from the table at partial reload.&lt;/P&gt;&lt;P&gt;Departures_tmp2:&lt;/P&gt;&lt;P&gt;replace LOAD&lt;/P&gt;&lt;P&gt;D_CREATION_DATE_TIME,&lt;/P&gt;&lt;P&gt;D_CREATION_DATE,&lt;/P&gt;&lt;P&gt;data1,&lt;/P&gt;&lt;P&gt;data2,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT Departures_tmp where Date#(D_CREATION_DATE) &amp;gt; $(minDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Departures_tmp;&lt;/P&gt;&lt;P&gt;//-------------------------------------------------------------------------------------- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I trigger 'partial reload':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add LOAD works fine and appends new data into existing ones.&lt;/P&gt;but 'replace LOAD' seems does not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;, it looks like it loads only 'fresh' data from src.csv&lt;BR /&gt;(but oryginaly it bases on RESIDENT Departures_tmp table). I`ve tried replace 'replace LOAD' with 'add LOAD' &lt;BR /&gt; but it does not work eather.&lt;BR /&gt; &lt;BR /&gt;Does any one have a good Idea to overcome this ?&lt;BR /&gt; &lt;BR /&gt; Cheers.&lt;BR /&gt;&lt;BR /&gt; &lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Reload-accumulating-data-but-based-on-the-same-source/m-p/310854#M114778</guid>
      <dc:creator />
      <dc:date>2011-07-27T11:33:17Z</dc:date>
    </item>
  </channel>
</rss>

