<?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 script For Each File in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-script-For-Each-File/m-p/1942008#M1219372</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i'm loading data from multiple excel file. Each Excel file is a different version (ie: a different date) of a forecast.&lt;/P&gt;
&lt;P&gt;I'm using the filename to select the forecast version i want to analyze in qlikview.&lt;/P&gt;
&lt;P&gt;Now i have a different file which contains my 2019 data that i want to concatenate to EACH file of my forecast. So when i select my forecast version, i can always compare with 2019 easily.&lt;/P&gt;
&lt;P&gt;How should i proceed ?&lt;/P&gt;
&lt;P&gt;right now i'm doing:&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD &lt;BR /&gt;filename() as filename,&lt;BR /&gt;[fields &amp;amp; FC metrics]&lt;BR /&gt;FROM&lt;BR /&gt;[C:\PATH\*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;For each File in filelist ('C:\PATH\')&lt;BR /&gt;Concatenate(Data)&lt;BR /&gt;LOAD&lt;BR /&gt;File.name as filename,&lt;BR /&gt;[fields &amp;amp; 2019 metrics]&lt;BR /&gt;FROM&lt;BR /&gt;[C:\ANOTHER PATH\2019 data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;Next File;&lt;/P&gt;
&lt;P&gt;that does not work, any idea ?&lt;/P&gt;
&lt;P&gt;I understand 2019 will be duplicate for each file and i'm ok with that.&lt;/P&gt;
&lt;P&gt;Or maybe with using a "For Each File" statement, is there a way i can loop thru each filename loaded previously and then simply concatenate 2019 data and dynamically change filename ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 08:22:36 GMT</pubDate>
    <dc:creator>Cyriltra</dc:creator>
    <dc:date>2022-06-10T08:22:36Z</dc:date>
    <item>
      <title>Load script For Each File</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-For-Each-File/m-p/1942008#M1219372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i'm loading data from multiple excel file. Each Excel file is a different version (ie: a different date) of a forecast.&lt;/P&gt;
&lt;P&gt;I'm using the filename to select the forecast version i want to analyze in qlikview.&lt;/P&gt;
&lt;P&gt;Now i have a different file which contains my 2019 data that i want to concatenate to EACH file of my forecast. So when i select my forecast version, i can always compare with 2019 easily.&lt;/P&gt;
&lt;P&gt;How should i proceed ?&lt;/P&gt;
&lt;P&gt;right now i'm doing:&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD &lt;BR /&gt;filename() as filename,&lt;BR /&gt;[fields &amp;amp; FC metrics]&lt;BR /&gt;FROM&lt;BR /&gt;[C:\PATH\*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P&gt;For each File in filelist ('C:\PATH\')&lt;BR /&gt;Concatenate(Data)&lt;BR /&gt;LOAD&lt;BR /&gt;File.name as filename,&lt;BR /&gt;[fields &amp;amp; 2019 metrics]&lt;BR /&gt;FROM&lt;BR /&gt;[C:\ANOTHER PATH\2019 data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;Next File;&lt;/P&gt;
&lt;P&gt;that does not work, any idea ?&lt;/P&gt;
&lt;P&gt;I understand 2019 will be duplicate for each file and i'm ok with that.&lt;/P&gt;
&lt;P&gt;Or maybe with using a "For Each File" statement, is there a way i can loop thru each filename loaded previously and then simply concatenate 2019 data and dynamically change filename ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 08:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-For-Each-File/m-p/1942008#M1219372</guid>
      <dc:creator>Cyriltra</dc:creator>
      <dc:date>2022-06-10T08:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load script For Each File</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-For-Each-File/m-p/1944216#M1219496</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Take a look at this QVW, it is pulling all files from the directory it is in.&amp;nbsp; This might help you with file gathering.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-For-Each-File/m-p/1944216#M1219496</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2022-06-15T19:18:55Z</dc:date>
    </item>
  </channel>
</rss>

