<?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: Filtering per files' name multiple excel files loaded in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596635#M44105</link>
    <description>&lt;P&gt;Just for info, it was not a problem of file connection.&lt;/P&gt;&lt;P&gt;However, I found the solution by adding at the beginning of the script:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;for each file in FileList('lib://DATI/R23P10F *.xlsx')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;let v_sheet = subfield(SubField('$(file)','/',-1),'.',-2);&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;let v_name_file = filename();&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace $(v_sheet);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;And then, inside the LOAD function:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[...]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;filename() as Data_File&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [$(file)]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is [$(v_sheet)]);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;next file;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this can help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edoardo&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 08:45:10 GMT</pubDate>
    <dc:creator>Edoardo</dc:creator>
    <dc:date>2019-06-27T08:45:10Z</dc:date>
    <item>
      <title>Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596045#M43869</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I am working on my project related to the loading of multiple excel files, &lt;U&gt;all having the same structures&lt;/U&gt; and a&lt;U&gt;ll placed in the same directory&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;The difference between one file to the other, is related to the data of the filename, which is the same of the sheet's name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the today's file is named "&lt;STRONG&gt;R23P10F 180626&lt;/STRONG&gt;" and has 1 sheet named "R23P10F 180626"&lt;/P&gt;&lt;P&gt;The yesterday's file is named&amp;nbsp;"&lt;STRONG&gt;R23P10F 180625&lt;/STRONG&gt;" and has 1 sheet named "R23P10F 180625" and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the script in order to load these multiple files, concatenating all the informations.&lt;/P&gt;&lt;P&gt;My goal is to &lt;EM&gt;&lt;STRONG&gt;&lt;U&gt;FILTER per file's name&lt;/U&gt;&lt;/STRONG&gt;&lt;/EM&gt; in the app: is it possible? (in the previous example, I should be able to choose a filter that shows "R23P10F 180626" or "R23P10F 180625": if I select the first, the datas in my app would be updated in accordance with my selection)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's the recap of the script used until now to load the multiple files:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;for each file in FileList('lib://DATI/R23P10F *.xlsx')&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;let v_sheet = subfield(SubField('$(file)','/',-1),'.',-2);&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;trace $(v_sheet);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;*&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;FROM [$(file)]&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;(ooxml, embedded labels, table is [$(v_sheet)]);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596045#M43869</guid>
      <dc:creator>Edoardo</dc:creator>
      <dc:date>2024-11-16T20:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596126#M43874</link>
      <description>&lt;P&gt;Hi Edoardo,&lt;/P&gt;&lt;P&gt;If you script is working, it's rather easy. Add your variable to the script and you will now be able to select. See the edited script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for each file in FileList('lib://DATI/R23P10F *.xlsx')
let v_sheet = subfield(SubField('$(file)','/',-1),'.',-2);
trace $(v_sheet);

LOAD
*,
$(v_sheet) as SheetName
FROM [$(file)]
(ooxml, embedded labels, table is [$(v_sheet)]);&lt;/LI-CODE&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 09:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596126#M43874</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-26T09:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596150#M43877</link>
      <description>&lt;P&gt;Hi Jordy,&lt;/P&gt;&lt;P&gt;Unfortunately is not working!&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's about filtering by &lt;STRONG&gt;file's name&lt;/STRONG&gt; instead of sheet's name?&lt;/P&gt;&lt;P&gt;This solution would be more suitable for me!...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Edoardo&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 09:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596150#M43877</guid>
      <dc:creator>Edoardo</dc:creator>
      <dc:date>2019-06-26T09:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596153#M43879</link>
      <description>&lt;P&gt;I read it wrong, then you should use the variable called 'file'.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for each file in FileList('lib://DATI/R23P10F *.xlsx')
let v_sheet = subfield(SubField('$(file)','/',-1),'.',-2);
trace $(v_sheet);

LOAD
*,
$(file) as FileName
FROM [$(file)]
(ooxml, embedded labels, table is [$(v_sheet)]);&lt;/LI-CODE&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 10:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596153#M43879</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-26T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596167#M43880</link>
      <description>&lt;P&gt;Unfortunately is not working, as this error appears.&lt;/P&gt;&lt;P&gt;What could it be?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Immagine.png" style="width: 403px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14462iB1FCFAB183E89065/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagine.png" alt="Immagine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 10:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596167#M43880</guid>
      <dc:creator>Edoardo</dc:creator>
      <dc:date>2019-06-26T10:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596303#M43897</link>
      <description>&lt;P&gt;This is a connection error. It says it can't find your file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to open your file manually and see which path it is giving you. You did make the connection right?&lt;/P&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 13:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596303#M43897</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-06-26T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering per files' name multiple excel files loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596635#M44105</link>
      <description>&lt;P&gt;Just for info, it was not a problem of file connection.&lt;/P&gt;&lt;P&gt;However, I found the solution by adding at the beginning of the script:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;for each file in FileList('lib://DATI/R23P10F *.xlsx')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;let v_sheet = subfield(SubField('$(file)','/',-1),'.',-2);&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;let v_name_file = filename();&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace $(v_sheet);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;And then, inside the LOAD function:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[...]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;filename() as Data_File&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [$(file)]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is [$(v_sheet)]);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;next file;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this can help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edoardo&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 08:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filtering-per-files-name-multiple-excel-files-loaded/m-p/1596635#M44105</guid>
      <dc:creator>Edoardo</dc:creator>
      <dc:date>2019-06-27T08:45:10Z</dc:date>
    </item>
  </channel>
</rss>

