<?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: Importing multiple excel files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150532#M376054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fine. I have corrected the code in above post. Please check the attachment. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 13:23:31 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2016-07-14T13:23:31Z</dc:date>
    <item>
      <title>Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150526#M376048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 excel files with 3 columns but one of them have one extra column &amp;amp; I can accomplish importing all 4 columns with script in qvw if sheet names are same but if sheet names are diff how to import all 4 columns ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150526#M376048</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-07-13T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150527#M376049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/131173_Capturar.PNG" style="height: 246px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150527#M376049</guid>
      <dc:creator />
      <dc:date>2016-07-13T16:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150528#M376050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14684299212907845 jive_text_macro" jivemacro_uid="_14684299212907845" modifiedtitle="true"&gt;
&lt;P&gt;Sub ScanFolder(Root) &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For each FileExtension in 'xlsx' &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For each FoundFile in filelist( Root &amp;amp; '\*.' &amp;amp; FileExtension) &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(FoundFile)]; &lt;/P&gt;
&lt;P&gt;Temp: &lt;/P&gt;
&lt;P&gt;LOAD *; &lt;/P&gt;
&lt;P&gt;SQLtables; &lt;/P&gt;
&lt;P&gt;DISCONNECT; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data: &lt;/P&gt;
&lt;P&gt;Load '' as Temp AutoGenerate 0; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 0 TO NoOfRows('Temp')-1 &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vSheetName = PurgeChar(PurgeChar(Peek('TABLE_NAME', i, 'Temp'), Chr(39)), Chr(36)); &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Concatenate(Data) &lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp; *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileBaseName() AS FileName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vSheetName)' AS Sheet_name &lt;/P&gt;
&lt;P&gt;FROM [$(FoundFile)]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is [$(vSheetName)]); &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NEXT i &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Next FoundFile &lt;/P&gt;
&lt;P&gt;Next FileExtension&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;end sub&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Call ScanFolder('C:\Users\Tamil\Desktop\New folder (3)') ; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;Drop Field Temp;&lt;/SPAN&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 17:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150528#M376050</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-13T17:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150529#M376051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's Not working &amp;amp; I am not bringing data from SQL these are flat files in a local system &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 17:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150529#M376051</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-07-13T17:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150530#M376052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Did you try the code.? Can you post a screen shot of the error.?&amp;nbsp; The above code is to load only flat files (Excel files) from your local system not from SQL database. We have to use ODBC connection to fetch all the sheet names into qlikview. So that we can loop through each sheets in a excel. I have attached a sample qvw file for your reference. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 02:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150530#M376052</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-14T02:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150531#M376053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced your Script in my QVW and replaced folder path&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;nbsp; attached error above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 13:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150531#M376053</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-07-14T13:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150532#M376054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fine. I have corrected the code in above post. Please check the attachment. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 13:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150532#M376054</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-14T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150533#M376055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you forgot to change, I see same code when import and reload I got the same error mentioned earlier &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 17:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150533#M376055</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-07-14T17:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150534#M376056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's always the first sheet of each file, you can leave the table name off the load and the default will be the first sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Dummy load so we can use concatenate below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD 0 as dummy AutoGenerate 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Concatenate (Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[foo\test*.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(ooxml, embedded labels);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP FIELD dummy;&amp;nbsp; // Drop dummy field&lt;/SPAN&gt;&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" target="_blank"&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" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 23:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150534#M376056</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-14T23:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150535#M376057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error Part of the script:&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(File)&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is Sheet1);;&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheet name should also be variable with a loop for the sheets you are loading (Ex: Your test1 xlsx sheet contains "Sheet1" as "Apple" )&lt;/P&gt;&lt;P&gt;So you need to replace "Sheet1" with "apple" instead in above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else Remove the "&lt;SPAN style="font-size: 13.3333px;"&gt;able is Sheet1&lt;/SPAN&gt;" as Rob suggested,that would be a very simple solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 00:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150535#M376057</guid>
      <dc:creator>vikramv</dc:creator>
      <dc:date>2016-07-15T00:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Importing multiple excel files</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150536#M376058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am looking for you are a pro &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-multiple-excel-files/m-p/1150536#M376058</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2016-07-18T14:22:12Z</dc:date>
    </item>
  </channel>
</rss>

