<?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: Selecting file with max date in file name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577390#M214756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your script is loading the filenames from a spreadsheet and I think what Satish wanted was to get the filenames from the folder using a filelist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 19:29:48 GMT</pubDate>
    <dc:creator>eduardo_sommer</dc:creator>
    <dc:date>2014-04-29T19:29:48Z</dc:date>
    <item>
      <title>Selecting file with max date in file name</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577387#M214753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thanking you for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple xls files as under&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GL20131031.XLS&lt;/P&gt;&lt;P&gt;GL20130930.XLS&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;GL20130430.XLS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I select file which has max date in file name(in this case GL20131031.XLS) at script level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577387#M214753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-29T18:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file with max date in file name</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577388#M214754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below in your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======&lt;/P&gt;&lt;P&gt;FileName:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName() as FileName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(MID(FileName(),3,8),'YYYYMMDD')) as Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempMaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Date) as MaxDate&lt;/P&gt;&lt;P&gt;Resident FileName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxDate = Date(Peek('MaxDate',0,'TempMaxDate'),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Tables FileName, TempMaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sales$(vMaxDate).xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577388#M214754</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-29T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file with max date in file name</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577389#M214755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only Helpful ?&lt;/P&gt;&lt;P&gt;Is there anything missing?&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577389#M214755</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-29T19:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file with max date in file name</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577390#M214756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your script is loading the filenames from a spreadsheet and I think what Satish wanted was to get the filenames from the folder using a filelist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577390#M214756</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-04-29T19:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file with max date in file name</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577391#M214757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK... Got it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use as Below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======================&lt;/P&gt;&lt;P&gt;TempFileName:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName() as FileName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(Date#(MID(FileName(),3,8),'YYYYMMDD')) as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident TempFileName&lt;/P&gt;&lt;P&gt;Order By Date Desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TempFileName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFileName = Peek('FileName',0,'TempFileName');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use vFileName variable as your result...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577391#M214757</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-29T19:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file with max date in file name</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577392#M214758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the script appendend to this message answers your need to load the newest excel file of a folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunetly, I don't know how to paste the text in this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is what you was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 22:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-file-with-max-date-in-file-name/m-p/577392#M214758</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-04-29T22:01:26Z</dc:date>
    </item>
  </channel>
</rss>

