<?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: Load only new file also support overwrite if data changes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993274#M338242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yury,&lt;/P&gt;&lt;P&gt;For point 2&amp;nbsp; I mean to say that I need to update BH values for any old data which got changed for combination of (DATE,RNC,HOUR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example--&amp;gt;&lt;/P&gt;&lt;P&gt;today when I load data it has values like&lt;/P&gt;&lt;P&gt;DATE RNC hour&amp;nbsp;&amp;nbsp;&amp;nbsp; BHVALUES&lt;/P&gt;&lt;P&gt;16/11/2015&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #ff0000; font-size: 14pt;"&gt;10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT DAY I got the modified value for the same combination like :&lt;/P&gt;&lt;P&gt;DATE RNC hour&amp;nbsp;&amp;nbsp; BHVALUES&lt;/P&gt;&lt;P&gt;16/11/2015&amp;nbsp; R1&amp;nbsp; 13:00&amp;nbsp; &lt;SPAN style="font-size: 14pt;"&gt; &lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG&gt;15.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG style="color: #000000;"&gt;so in my qvd file I need to remove the old data and insert the modified data for unqiue combination of (DATE,RNC,BH).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG style="color: #000000;"&gt;Can we handle this during load?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 14:39:46 GMT</pubDate>
    <dc:creator>aj0031724</dc:creator>
    <dc:date>2015-11-16T14:39:46Z</dc:date>
    <item>
      <title>Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993270#M338238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;Dear Team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;I need your advice .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;I have&amp;nbsp; a requirement to load files with filename elike&amp;nbsp; (&lt;STRONG&gt;RNC_date*.txt&lt;/STRONG&gt;)&amp;nbsp; having 4 colmns WITH DATA like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;DATE RNC HOUR(HH:MM)&amp;nbsp; VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;12.08.2015&amp;nbsp;&amp;nbsp; R1 13:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt; from specific folder(C:\STORAGE\NETWORK) per hour .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;so each date there will be max 24 files if all are new or more if any existing hour value changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;1)Situation--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;we need to add only new files each hour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;2) Also check if any xisting VALUE changes for unqiue combination of (DATE,RNC,HOUR) then remove the old one and insert the new data for that combination.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;We have&amp;nbsp; a existing code that load all files from this folder .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;So is there any ANY by which I can ensure that I load only new files and also update the old data if there is any changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-size: 12pt;"&gt;Pleas suggest.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993270#M338238</guid>
      <dc:creator>aj0031724</dc:creator>
      <dc:date>2015-11-13T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993271#M338239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at Incremental load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can a lot of sources here: &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;A href="https://community.qlik.com/docs/DOC-1870"&gt;Incremental Load Scenarios.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993271#M338239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-13T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993272#M338240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard to provide a working source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can easily build a list of new files. Below are some highlights which should help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get a list of files in your directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14474259423656069 jive_text_macro" jivemacro_uid="_14474259423656069" modifiedtitle="true"&gt;
&lt;P&gt;For each file in FileList('C:\STORAGE\NETWORK\RNC_date*.txt')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;TMP_FILE:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt; subfield('$(file)','\',-1) as Filename&lt;/P&gt;
&lt;P&gt;autogenerate 1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Next file;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compare it with a list you have already loaded. You can keep it in a qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build a list of files which are in list1 and not in list2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't get this requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;2) Also check if any xisting VALUE changes for unqiue combination of (DATE,RNC,HOUR) then remove the old one and insert the new data for that combination.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it mean you need to check it in old files? &lt;/P&gt;&lt;P&gt;You can keep a hash for every file and compare it, if it doesn't match -&amp;gt; reload file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yury&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993272#M338240</guid>
      <dc:creator />
      <dc:date>2015-11-13T14:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993273#M338241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yury,&lt;/P&gt;&lt;P&gt;For point 2&amp;nbsp; I mean to say that I need to update BH values for any old data which got changed for combination of (DATE,RNC,HOUR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example--&amp;gt;&lt;/P&gt;&lt;P&gt;today when I load data it has values like&lt;/P&gt;&lt;P&gt;DATE RNC hour&amp;nbsp;&amp;nbsp;&amp;nbsp; BHVALUES&lt;/P&gt;&lt;P&gt;16/11/2015&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #ff0000; font-size: 14pt;"&gt;10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT DAY I got the modified value for the same combination like :&lt;/P&gt;&lt;P&gt;DATE RNC hour&amp;nbsp;&amp;nbsp; BHVALUES&lt;/P&gt;&lt;P&gt;16/11/2015&amp;nbsp; R1&amp;nbsp; 13:00&amp;nbsp; &lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG&gt;15.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG style="color: #000000;"&gt;so in my qvd file I need to remove the old data and insert the modified data for unqiue combination of (DATE,RNC,BH).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG style="color: #000000;"&gt;Can we handle this during load?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993273#M338241</guid>
      <dc:creator>aj0031724</dc:creator>
      <dc:date>2015-11-16T11:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993274#M338242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yury,&lt;/P&gt;&lt;P&gt;For point 2&amp;nbsp; I mean to say that I need to update BH values for any old data which got changed for combination of (DATE,RNC,HOUR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example--&amp;gt;&lt;/P&gt;&lt;P&gt;today when I load data it has values like&lt;/P&gt;&lt;P&gt;DATE RNC hour&amp;nbsp;&amp;nbsp;&amp;nbsp; BHVALUES&lt;/P&gt;&lt;P&gt;16/11/2015&amp;nbsp; R1&amp;nbsp;&amp;nbsp;&amp;nbsp; 13:00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #ff0000; font-size: 14pt;"&gt;10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT DAY I got the modified value for the same combination like :&lt;/P&gt;&lt;P&gt;DATE RNC hour&amp;nbsp;&amp;nbsp; BHVALUES&lt;/P&gt;&lt;P&gt;16/11/2015&amp;nbsp; R1&amp;nbsp; 13:00&amp;nbsp; &lt;SPAN style="font-size: 14pt;"&gt; &lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG&gt;15.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG style="color: #000000;"&gt;so in my qvd file I need to remove the old data and insert the modified data for unqiue combination of (DATE,RNC,BH).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style="color: #ffff00;"&gt;&lt;STRONG style="color: #000000;"&gt;Can we handle this during load?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 14:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993274#M338242</guid>
      <dc:creator>aj0031724</dc:creator>
      <dc:date>2015-11-16T14:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993275#M338243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this scenario, it's easiest to just load everything that is available and not try to determine if a data value has changed. I'm assuming that the directories will get cleaned out on a regular basis, but there is no harm in loading the same data twice. The Exists() test in the QVD load below will prevent duplication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Form a unique key for each record as: DATE &amp;amp; RNC &amp;amp; Hour as ID.&lt;/P&gt;&lt;P&gt;2. Load all data in the directory.&lt;/P&gt;&lt;P&gt;3. Concatenate Load your QVD with: WHERE NOT Exists(ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993275#M338243</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-16T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load only new file also support overwrite if data changes</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993276#M338244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my prototype.&lt;/P&gt;&lt;P&gt;You need to improve it for your case of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Get a list of files from the source foulder&lt;/P&gt;&lt;P&gt;For each file in FileList('C:\Users\x\Desktop\191409\*.txt')&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TMP_FILE:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt; subfield('$(file)','\',-1) as Filename&amp;nbsp; &lt;/P&gt;&lt;P&gt;,date(FileTime('$(file)'), 'DD/MM/YYYY hh:mm:ss')&amp;nbsp; as FileTime&lt;/P&gt;&lt;P&gt;autogenerate 1;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Next file;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// If it's not the very first run then read a list of files already loaded before&lt;/P&gt;&lt;P&gt;if not isnull(QVDCreateTime('C:\Users\x\Desktop\191409\last_load_file_list.qvd')) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; left join(TMP_FILE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,LastLoadFileTime;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,FileTime&amp;nbsp; as LastLoadFileTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM C:\Users\x\Desktop\191409\last_load_file_list.qvd (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD_FILES:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,FileTime &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,if(FileTime &amp;lt;&amp;gt; LastLoadFileTime, 1, 0)&amp;nbsp; as LoadFlag&lt;/P&gt;&lt;P&gt;&amp;nbsp; RESIDENT TMP_FILE;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE TMP_FILE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; store TMP_FILE into C:\Users\x\Desktop\191409\last_load_file_list.qvd (qvd);&lt;/P&gt;&lt;P&gt;end if&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Files in LOAD_FILES are the once that should be reloaded&lt;/P&gt;&lt;P&gt; Please note that reload flag is based on FileTime&lt;/P&gt;&lt;P&gt; There are 2 cases:&lt;/P&gt;&lt;P&gt; 1. Files have been changed, as a result olf filetime doesn't match to new flletime and file has to be reloaded (I DON'T CHECK FILE'S BODY, IT CAN BE CRITCAL IN YOUR CASE TO DO SO)&lt;/P&gt;&lt;P&gt; 2. New files, in that case LastLoadFileTime is NULL and all new files will be marked to load&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/// HERE YOU LOAD YOUR FILES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Save files time for next run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; store LOAD_FILES into C:\Users\x\Desktop\191409\last_load_file_list.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-new-file-also-support-overwrite-if-data-changes/m-p/993276#M338244</guid>
      <dc:creator />
      <dc:date>2015-11-16T15:36:17Z</dc:date>
    </item>
  </channel>
</rss>

