<?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 an Excel with different table names by using a for each in a variable which is an array? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1993145#M82188</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have this code that loads right now an Excel with 2 similar table names: Calendario Horno 9 and Calendario Horno 10, in which I create a list manually so it loops this 2 times and loads all the data:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;FOR Each Hoja In '[Calendario Horno 9]', '[Calendario Horno 10]'

EXCEL:
LOAD 
	*
FROM $(vRutaEXCEL)CalendarioHornos.xlsx 
(ooxml, no labels, header is 2 lines, table is $(Hoja));
NEXT;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to know if I can use a RegEx in the list, for example, FOR Each Hoja In WildMatch($(Hoja), '[Calendario Horno *])&lt;/P&gt;
&lt;P&gt;or I can also create an array and store it into a variable that has those 2 or more values, by loading them before from another table in the same Excel, but I don´t know if that is possible. Or is there another way? At the end, I need to automatize the From in Excel with changing name values that have a very similar name (table 1, table 2, table 3, usually has a common string but different value, so table *?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 07:44:11 GMT</pubDate>
    <dc:creator>Diego_780</dc:creator>
    <dc:date>2022-10-17T07:44:11Z</dc:date>
    <item>
      <title>Load an Excel with different table names by using a for each in a variable which is an array?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1993145#M82188</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have this code that loads right now an Excel with 2 similar table names: Calendario Horno 9 and Calendario Horno 10, in which I create a list manually so it loops this 2 times and loads all the data:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;FOR Each Hoja In '[Calendario Horno 9]', '[Calendario Horno 10]'

EXCEL:
LOAD 
	*
FROM $(vRutaEXCEL)CalendarioHornos.xlsx 
(ooxml, no labels, header is 2 lines, table is $(Hoja));
NEXT;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to know if I can use a RegEx in the list, for example, FOR Each Hoja In WildMatch($(Hoja), '[Calendario Horno *])&lt;/P&gt;
&lt;P&gt;or I can also create an array and store it into a variable that has those 2 or more values, by loading them before from another table in the same Excel, but I don´t know if that is possible. Or is there another way? At the end, I need to automatize the From in Excel with changing name values that have a very similar name (table 1, table 2, table 3, usually has a common string but different value, so table *?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 07:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1993145#M82188</guid>
      <dc:creator>Diego_780</dc:creator>
      <dc:date>2022-10-17T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel with different table names by using a for each in a variable which is an array?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1996390#M82504</link>
      <description>&lt;P&gt;You can loop through file in a similar way with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for each file in filelist('lib://YourConnectionName\*.qvd')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourTableName:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourField1,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourField2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from [$(file)](qvd)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;next file&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1996390#M82504</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-10-25T06:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel with different table names by using a for each in a variable which is an array?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1996406#M82507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155174"&gt;@Diego_780&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;yo can reference Excel sheets by their number using&amp;nbsp;@n like this:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [myfile.xls] (biff, no labels, table is @2);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/1996406#M82507</guid>
      <dc:creator>Mario_De_Felipe</dc:creator>
      <dc:date>2022-10-25T06:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel with different table names by using a for each in a variable which is an array?</title>
      <link>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/2010247#M83561</link>
      <description>&lt;P&gt;Hi fellas,&lt;/P&gt;
&lt;P&gt;I got a solution for my problem. So I wrote down the names of the sheets in a new sheet, and load it first in a table with the dimension as ListSheets, and then, in the For Each, I used in FieldValueList('ListSheets'), so it iterates over this dimension I have previously loaded, so something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;TABLE_1:
LOAD
     Sheets        AS ListSheets
 
FROM EXCEL1.xlsx
(ooxml, embedded labels, table is Indice);

// Then we use it in the for each
For Each Hoja in FieldValueList('ListSheets')

xx xx

From EXCEL1.xlsx
(ooxml, embedded labels, table is $(Hoja));

NEXT;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 09:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-an-Excel-with-different-table-names-by-using-a-for-each-in/m-p/2010247#M83561</guid>
      <dc:creator>Diego_780</dc:creator>
      <dc:date>2022-11-29T09:52:01Z</dc:date>
    </item>
  </channel>
</rss>

