<?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: Getting Filetime from multiple excel sheets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809398#M1212431</link>
    <description>&lt;P&gt;Your second loop would contain the list of folders to iterate over, similar to the file extension loop in the example I linked. In pseudo code terms,&lt;/P&gt;&lt;P&gt;for each FolderName in 'c:\temp', 'd:\temp', 'c:\windows'&lt;/P&gt;&lt;P&gt;for each File in filelist (FolderName &amp;amp;' \*.*')&lt;/P&gt;&lt;P&gt;Do stuff&lt;/P&gt;&lt;P&gt;Next File&lt;/P&gt;&lt;P&gt;Next Foldername&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 11:17:51 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-05-20T11:17:51Z</dc:date>
    <item>
      <title>Getting Filetime from multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809353#M1212420</link>
      <description>&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;hopefully an easy one.&lt;/P&gt;&lt;P&gt;i need to pull in just the filetimes of multiple excel sheets in different folder locations. what would be the most efficient way to do this in the script?&lt;/P&gt;&lt;P&gt;i dont want to load any data within the excel sheets, just each excel sheets filetime (i then get the max file time later in the script)&lt;/P&gt;&lt;P&gt;i have a few different tables that i concatenated together. however it takes a few minutes to load in the few hundred excel sheets as i think im loading in all the lines in the excel sheet as well as the filetime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my table looks like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table:&lt;BR /&gt;Load&lt;BR /&gt;filetime() as filetime&lt;BR /&gt;FROM x&amp;nbsp;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is POBA);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a better way to just grab the filename and not any of the sheet data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 09:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809353#M1212420</guid>
      <dc:creator>JohnSamuel123</dc:creator>
      <dc:date>2021-05-20T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Filetime from multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809390#M1212428</link>
      <description>&lt;P&gt;Have a look at using FileList() and loops, e.g.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/for-each-file-in-filelist/m-p/344604" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/for-each-file-in-filelist/m-p/344604&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since you have different locations you may need to use a second loop to cover all of those. The post in question also shows how to get information from the file without reading the contents.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 10:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809390#M1212428</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-05-20T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Filetime from multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809395#M1212430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp; thanks for that,&lt;/P&gt;&lt;P&gt;that code is exactly what i need, you mentioned using a second loop to capture all the folder locations. would you have an idea on how to do this?&amp;nbsp; it works if i create a single loop for each of my file locations and then just have qlik join the fields together, but thats a lot of code and im sure theres an easier way,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible for the "in filelist" section to have all my folder locations in and not just one location per loop?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809395#M1212430</guid>
      <dc:creator>JohnSamuel123</dc:creator>
      <dc:date>2021-05-20T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Filetime from multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809398#M1212431</link>
      <description>&lt;P&gt;Your second loop would contain the list of folders to iterate over, similar to the file extension loop in the example I linked. In pseudo code terms,&lt;/P&gt;&lt;P&gt;for each FolderName in 'c:\temp', 'd:\temp', 'c:\windows'&lt;/P&gt;&lt;P&gt;for each File in filelist (FolderName &amp;amp;' \*.*')&lt;/P&gt;&lt;P&gt;Do stuff&lt;/P&gt;&lt;P&gt;Next File&lt;/P&gt;&lt;P&gt;Next Foldername&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809398#M1212431</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-05-20T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Filetime from multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809406#M1212432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;im getting this&amp;nbsp; syntax error&amp;nbsp; semantic error.The control statement is not correctly matched with its corresponding start statement next FolderName&lt;/P&gt;&lt;P&gt;this is my code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for each FolderName in ('C:\2021*.xlsx',  Network:CD\*.xlsx', D:\Earned Hours\*.txt')

for each File in filelist (FolderName &amp;amp;' \*.*')

table:

FileTime( '$(File)' ) as filetime

autogenerate 1;

next File
next FolderName;&lt;/LI-CODE&gt;&lt;P&gt;would you know where im going wrong?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809406#M1212432</guid>
      <dc:creator>JohnSamuel123</dc:creator>
      <dc:date>2021-05-20T11:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Filetime from multiple excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809407#M1212433</link>
      <description>&lt;P&gt;Your folder names already contain the extension, so you should remove the &amp;amp;' \*.*' part of the code...&lt;/P&gt;&lt;P&gt;Otherwise, as always when working with loops and variables, I recommend using debug mode to step through each line. This lets you see if the variables are being set and read correctly and should help you pinpoint any issues.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 11:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Filetime-from-multiple-excel-sheets/m-p/1809407#M1212433</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-05-20T11:37:26Z</dc:date>
    </item>
  </channel>
</rss>

