<?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 and stack data from an excel file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-and-stack-data-from-an-excel-file/m-p/391181#M145887</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;I would like load data from several excel tables. All the tables have the same structure (fields) but each one is in one tag. I would like to stack all the rows from all the tables into only one table adding a field to distinguish from which original table tag were the row loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it short, I don't know how to load from excel neither how to stack several excel tags in one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 17:50:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-31T17:50:25Z</dc:date>
    <item>
      <title>Load and stack data from an excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-and-stack-data-from-an-excel-file/m-p/391181#M145887</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;I would like load data from several excel tables. All the tables have the same structure (fields) but each one is in one tag. I would like to stack all the rows from all the tables into only one table adding a field to distinguish from which original table tag were the row loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it short, I don't know how to load from excel neither how to stack several excel tags in one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 17:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-and-stack-data-from-an-excel-file/m-p/391181#M145887</guid>
      <dc:creator />
      <dc:date>2013-01-31T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load and stack data from an excel file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-and-stack-data-from-an-excel-file/m-p/391182#M145888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;See &lt;A _jive_internal="true" href="https://community.qlik.com/thread/51954"&gt;here&lt;/A&gt;. Post 2 and 8 are probably what you're looking for. If you need to loop through excel files in a directory tree, see &lt;A _jive_internal="true" href="https://community.qlik.com/message/262748#262748"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;You can add &lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;$(vSheet)&lt;/STRONG&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;STRONG&gt; as SheetName&lt;/STRONG&gt; to create a field to store the sheet name:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;for vSheetNo = 1 to $(vMaxSheet)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(vSheet)&lt;/SPAN&gt; as SheetName&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(vFileName)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (biff, embedded labels, header is 1 lines, table is $(vSheet));&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 18:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-and-stack-data-from-an-excel-file/m-p/391182#M145888</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-31T18:56:36Z</dc:date>
    </item>
  </channel>
</rss>

