<?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 all Excel Files in a Directory in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1522317#M37463</link>
    <description>&lt;P&gt;Start by loading a single file using the select from connection button.&amp;nbsp; Then modify the filename in the generated statement to use "*".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 19:29:55 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-12-18T19:29:55Z</dc:date>
    <item>
      <title>Load all Excel Files in a Directory</title>
      <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521845#M37417</link>
      <description>&lt;P&gt;I have a directory that contains excel files, that is updated upon conclusion of events. I want to load all of the files in the directory into a QVD file. I understood how to do this in Qlikview however I am new to Qlik Sense and am struggling to accomplish this. Any help is appreciated. Current structure of script below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Directory 'F:\WaitTimes';&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For each ExcelFile in filelist ('*.xlsx')&lt;BR /&gt;WaitTimesData:&lt;BR /&gt;BUFFER (incremental) Load * From $(ExcelFile) (ooxml, embedded labels, table is [WaitTimes]);&lt;BR /&gt;Next ExcelFile;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;STORE WaitTimesData INTO [F:\DataAgg\WaitTimesAggregate.qvd] (qvd);&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 20:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521845#M37417</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2018-12-17T20:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Load all Excel Files in a Directory</title>
      <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521850#M37418</link>
      <description>&lt;P&gt;Create a folder connection that points to the directory.&amp;nbsp; Then use just the filename portion in the From&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;For each ExcelFile in filelist ('lib://mydir/*.xlsx')&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Let fname = SubField('$(ExcelFile', '\', -1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD ... From lib://mydir/$(fname)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even easier may be to forgo the For loop and use wildcards:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;WaitTimesData:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;BUFFER (incremental) Load * From lib://mydir/*.xlsx&amp;nbsp; (ooxml, embedded labels, table is [WaitTimes]);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 21:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521850#M37418</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-12-17T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load all Excel Files in a Directory</title>
      <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521851#M37419</link>
      <description>&lt;P&gt;Thank you for the help. I had the folder created, however when I run the script I get the error of&amp;nbsp; 'Connection not found'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the connection and named 'WaitTimesData'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual directory path is&amp;nbsp;E:\Data\WaitTimes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which title do I use in the from portion&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 21:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521851#M37419</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2018-12-17T21:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load all Excel Files in a Directory</title>
      <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521853#M37421</link>
      <description>&lt;P&gt;For context, the option you provided that I utilized&lt;/P&gt;&lt;P&gt;WaitTimesData:&lt;BR /&gt;BUFFER (incremental) LOAD * FROM lib://WaitTimesData/*.xlsx (ooxml, embedded labels, table is [WaitTimes]);&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 21:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1521853#M37421</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2018-12-17T21:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load all Excel Files in a Directory</title>
      <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1522317#M37463</link>
      <description>&lt;P&gt;Start by loading a single file using the select from connection button.&amp;nbsp; Then modify the filename in the generated statement to use "*".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 19:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1522317#M37463</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-12-18T19:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load all Excel Files in a Directory</title>
      <link>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1522318#M37464</link>
      <description>&lt;P&gt;Your original answer worked, I had a small error on my end that took some time to notice. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 19:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-all-Excel-Files-in-a-Directory/m-p/1522318#M37464</guid>
      <dc:creator>EvanBarrick</dc:creator>
      <dc:date>2018-12-18T19:31:21Z</dc:date>
    </item>
  </channel>
</rss>

