<?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: How to load the latest excel file in a folder? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1704778#M592022</link>
    <description>&lt;P&gt;Hi, you may try something like this.&lt;/P&gt;&lt;P&gt;TablesList:&lt;BR /&gt;LOAD&lt;BR /&gt;"TableName"&lt;BR /&gt;FROM [C:/TablesDetails.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;For i = 0 to (NoOfRows('TablesList')-1);&lt;BR /&gt;Let varTableName = Peek('TableName',$(i), 'TablesList');&lt;/P&gt;&lt;P&gt;// Load Tables&lt;/P&gt;&lt;P&gt;$(varTableName):&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM &lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[C:\Data\$(varTableName)&lt;/SPAN&gt;&lt;SPAN&gt;.xlsx&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(ooxml, embedded labels, table is Orders);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bhaskar&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 17:34:35 GMT</pubDate>
    <dc:creator>bhaskar_sm</dc:creator>
    <dc:date>2020-05-24T17:34:35Z</dc:date>
    <item>
      <title>How to load the latest excel file in a folder?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1704776#M592021</link>
      <description>&lt;P&gt;I am trying to store the name of the latest filename from a batch of files in the folder and recall it when I am loading.&lt;/P&gt;&lt;P&gt;That way I can always load the latest file clicking "reload" without typing in the latest file name again.&lt;/P&gt;&lt;P&gt;I have used this code to extract the file names&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;load_name:&lt;BR /&gt;load *, filename() as Filename&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;From *.xlsx (txt);&lt;/P&gt;&lt;P&gt;and not sure how to recall that latest file name in load.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Order:&lt;BR /&gt;LOAD *&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;FROM&lt;BR /&gt;[C:\Data\&lt;STRIKE&gt;orders-2020-05-21.xlsx&lt;/STRIKE&gt;]&lt;BR /&gt;(ooxml, embedded labels, table is Orders);&lt;/P&gt;&lt;P&gt;Would be great if someone can give me a hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1704776#M592021</guid>
      <dc:creator>ffan2008</dc:creator>
      <dc:date>2024-11-16T18:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to load the latest excel file in a folder?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1704778#M592022</link>
      <description>&lt;P&gt;Hi, you may try something like this.&lt;/P&gt;&lt;P&gt;TablesList:&lt;BR /&gt;LOAD&lt;BR /&gt;"TableName"&lt;BR /&gt;FROM [C:/TablesDetails.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;For i = 0 to (NoOfRows('TablesList')-1);&lt;BR /&gt;Let varTableName = Peek('TableName',$(i), 'TablesList');&lt;/P&gt;&lt;P&gt;// Load Tables&lt;/P&gt;&lt;P&gt;$(varTableName):&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM &lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[C:\Data\$(varTableName)&lt;/SPAN&gt;&lt;SPAN&gt;.xlsx&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(ooxml, embedded labels, table is Orders);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Next;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bhaskar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1704778#M592022</guid>
      <dc:creator>bhaskar_sm</dc:creator>
      <dc:date>2020-05-24T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to load the latest excel file in a folder?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1705851#M592023</link>
      <description>&lt;P&gt;One solution is..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For Each File in FileList ('C:\Users\...\MyFiles*.xls')
Folder:
Load '$(File)' as Name,
 FileTime( '$(File)' ) as FileTime
 Autogenerate 1;
Next File

//Method 1 -
LatestFile:
First 1
Load
 Name,
 FileTime,
 1 as dummy
Resident Folder
Order By FileTime DESC;
Let vFile=Peek('Name',0,'LatestFile');

Trace &amp;lt;&amp;lt; vFile=$(vFile);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 May 2020 00:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1705851#M592023</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-05-28T00:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to load the latest excel file in a folder?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1705852#M592024</link>
      <description>&lt;P&gt;one more..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//Method 2 -
Modified_Time:
Load
     Timestamp(max(FileTime)) as ModifiedTime,
     FirstSortedValue(Name, -FileTime) as LastModifiedFileName
Resident Folder;
Let vModifiedTime=Peek('ModifiedTime',0,'Modified_Time');
Let vLastModifiedFileName=Peek('LastModifiedFileName',0,'Modified_Time');

Trace &amp;lt;&amp;lt; vModifiedTime=$(vModifiedTime);
Trace &amp;lt;&amp;lt; vLastModifiedFileName=$(vLastModifiedFileName);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 May 2020 00:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1705852#M592024</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-05-28T00:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to load the latest excel file in a folder?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1706092#M592025</link>
      <description>&lt;P&gt;Did you try the above solutions?&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-the-latest-excel-file-in-a-folder/m-p/1706092#M592025</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-05-28T15:09:41Z</dc:date>
    </item>
  </channel>
</rss>

