<?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 Excel files based on the file name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195612#M713811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.I hope someone can help me on this. I have a folder with excel files. The file names are Sales123, Sales789 etc. I want Qlikview to load the excel files according to the 3 numbers in the filename,which represent the branch. I create a for loop which works fine:&lt;/P&gt;&lt;P&gt;for Branch=123 to 789&lt;BR /&gt;&lt;BR /&gt; load Results from Sales$(Branch).xlsx (ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;The problem is that the number of branches may change, so i have to load the branch names from another excel file which has 2 columns, BranchNo (1,2 etc),Branch (123,789 etc). How can i pass that parameter in the for loop? Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 08:41:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-01T08:41:58Z</dc:date>
    <item>
      <title>Load data from Excel files based on the file name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195612#M713811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.I hope someone can help me on this. I have a folder with excel files. The file names are Sales123, Sales789 etc. I want Qlikview to load the excel files according to the 3 numbers in the filename,which represent the branch. I create a for loop which works fine:&lt;/P&gt;&lt;P&gt;for Branch=123 to 789&lt;BR /&gt;&lt;BR /&gt; load Results from Sales$(Branch).xlsx (ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;The problem is that the number of branches may change, so i have to load the branch names from another excel file which has 2 columns, BranchNo (1,2 etc),Branch (123,789 etc). How can i pass that parameter in the for loop? Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 08:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195612#M713811</guid>
      <dc:creator />
      <dc:date>2010-07-01T08:41:58Z</dc:date>
    </item>
    <item>
      <title>Load data from Excel files based on the file name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195613#M713812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simply place all the branch files in a folder called 'branchfolder' and folder, drop the for next loop and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;load&lt;BR /&gt;subfield(Filename(),'.',1) as [BranchFromFilename],&lt;BR /&gt;Results&lt;BR /&gt;from branchfolder\Sales*.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and if your branch files have the branchname/number already in a field you dont even need the subfield line!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 09:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195613#M713812</guid>
      <dc:creator />
      <dc:date>2010-07-01T09:03:32Z</dc:date>
    </item>
    <item>
      <title>Load data from Excel files based on the file name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195614#M713813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I right understood, you can use a map table for according branchNames.&lt;/P&gt;&lt;P&gt;1) create a map table:&lt;/P&gt;&lt;P&gt;BranchMAP: MAPPING LOAD BranchNo, Branch FROM Excel2.xls...&lt;/P&gt;&lt;P&gt;2) use it map for creating excel filename&lt;/P&gt;&lt;P&gt;for i=1 to 10 (10 - it' example)&lt;/P&gt;&lt;P&gt;LET vFilename = 'Sales' &amp;amp; ApplyMap('BranchMAP', $(i));&lt;BR /&gt;&lt;BR /&gt; load Results from $(vFilename).xlsx (ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 09:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195614#M713813</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-07-01T09:04:11Z</dc:date>
    </item>
    <item>
      <title>Load data from Excel files based on the file name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195615#M713814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. The reason i use the for loop is that i want to load the excel files in groups, not all at the same time. What if the excel file that contains the branches has a column called group (A,B etc) and i want to load only the branches of group A? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 09:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195615#M713814</guid>
      <dc:creator />
      <dc:date>2010-07-01T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Load data from Excel files based on the file name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195616#M713815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again! That is exactly what i need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 09:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195616#M713815</guid>
      <dc:creator />
      <dc:date>2010-07-01T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Load data from Excel files based on the file name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195617#M713816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works ok, but i have another question. What can i do if the excel file with the branches has a column named 'group',with values(A,B etc), instead of BranchNo and i want to load only the files from the branches in group A?All the files have to be in the same folder.Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 12:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-Excel-files-based-on-the-file-name/m-p/195617#M713816</guid>
      <dc:creator />
      <dc:date>2010-07-01T12:05:11Z</dc:date>
    </item>
  </channel>
</rss>

