<?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 Load data from multiple excel files with multiple excel sheets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-excel-files-with-multiple-excel-sheets/m-p/1417808#M428062</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;The following question is from the thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4452"&gt;Load Multiple excel sheets using For loop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to figure out a way to only load new files by using this script. After a lot of trial and error I came up with the script below. This works for all files except for the last, i.e. it loads through all the files without adding any data but it does load data from the last file even though it should not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the MaxsystemTime used below is derived from a timestamp on one of the sheets in the excel files, i..e it does not exist on all sheets which stops me from using it in the WHERE clause (I think....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewData:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' AS Data.Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' AS Data.Field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoGenerate(0); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR index = vStartSheetNumber TO vEndSheetNumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(NewData)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM C:\Temp\Qlik\Data*.xlsx&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(ooxml, embedded labels, table is [Datasheet$(index)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHERE Filetime() &amp;gt; '$(MaxSystemTime)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;NEXT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas or alternate ways of only loading new data while loading from Mlutiple sheets?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2017 11:51:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-09T11:51:29Z</dc:date>
    <item>
      <title>Load data from multiple excel files with multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-excel-files-with-multiple-excel-sheets/m-p/1417808#M428062</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;The following question is from the thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4452"&gt;Load Multiple excel sheets using For loop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to figure out a way to only load new files by using this script. After a lot of trial and error I came up with the script below. This works for all files except for the last, i.e. it loads through all the files without adding any data but it does load data from the last file even though it should not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the MaxsystemTime used below is derived from a timestamp on one of the sheets in the excel files, i..e it does not exist on all sheets which stops me from using it in the WHERE clause (I think....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewData:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' AS Data.Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' AS Data.Field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoGenerate(0); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR index = vStartSheetNumber TO vEndSheetNumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(NewData)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM C:\Temp\Qlik\Data*.xlsx&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(ooxml, embedded labels, table is [Datasheet$(index)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHERE Filetime() &amp;gt; '$(MaxSystemTime)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;NEXT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas or alternate ways of only loading new data while loading from Mlutiple sheets?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 11:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-excel-files-with-multiple-excel-sheets/m-p/1417808#M428062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-09T11:51:29Z</dc:date>
    </item>
  </channel>
</rss>

