<?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: Load latest file based on file prefix - script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114416#M604316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, I plan to look into applying the script changes tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks Martin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2018 21:35:41 GMT</pubDate>
    <dc:creator>martin_hamilton</dc:creator>
    <dc:date>2018-07-23T21:35:41Z</dc:date>
    <item>
      <title>Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114414#M604314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data refreshing on a daily basis into a directory but I only wish to load the latest file based on the prefix of the file name e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20180101FILENAME1.csv&lt;/P&gt;&lt;P&gt;20180102FILENAME1.csv&lt;/P&gt;&lt;P&gt;20180103FILENAME1.csv&lt;/P&gt;&lt;P&gt;20180104FILENAME1.csv&lt;/P&gt;&lt;P&gt;20180101FILENAME2.csv&lt;/P&gt;&lt;P&gt;20180102FILENAME2.csv&lt;/P&gt;&lt;P&gt;20180103FILENAME2.csv&lt;/P&gt;&lt;P&gt;20180104FILENAME2.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in the above example I would only load the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20180104FILENAME1.csv&lt;/P&gt;&lt;P&gt;20180104FILENAME2.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to use the file properties as this could be the same for all files, I need to use the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 07:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114414#M604314</guid>
      <dc:creator>martin_hamilton</dc:creator>
      <dc:date>2018-07-23T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114415#M604315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Something like this:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;For each vFile in FileList('D:\ABC\XYZ\Data\*.csv')&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vFileName = SubField('$(vFile)','\',-1);&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vDate = Date(Date#(Left('$(vFileName)',8),'YYYYMMDD'),'YYYYMMDD');&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmpFiles:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD '$(vFile)' as File,&amp;nbsp; '$(vFileName)' as FileName, '$(vDate)' as Date AutoGenerate 1;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;next&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Files:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;LOAD Max(Date) as Date RESIDENT tmpFiles;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;LEFT JOIN (Files)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;LOAD File, Date RESIDENT tmpFiles;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;DROP TABLE tmpFiles;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;For i = 0 to NoOfRows('Files') -1&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;LET vSourceFile = peek('File',$(i),'Files')&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * FROM [$(vSourceFile)] (txt, ....);&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 08:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114415#M604315</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-07-23T08:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114416#M604316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, I plan to look into applying the script changes tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks Martin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 21:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114416#M604316</guid>
      <dc:creator>martin_hamilton</dc:creator>
      <dc:date>2018-07-23T21:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114417#M604317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think I am fully understanding the script, I have implemented the following but its throwing an error saying "&lt;/P&gt;&lt;P&gt;The following error occurred:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 13px; background: rgba(255, 38, 38, 0.2);"&gt;Table 'tmpFiles' not found&lt;/P&gt;&lt;P class="headline edc_error" style="padding: 0 10px; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 13px; background: rgba(255, 38, 38, 0.2);"&gt;The error occurred here:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 13px; background: rgba(255, 38, 38, 0.2);"&gt;Files: LOAD Max(Date) as Date RESIDENT tmpFiles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For each vFile in FileList('C:\Users\martin.hamilton\Documents\Qlik\Sense\Data Directory\FileListByDate\*.csv');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vFileName = SubField('$(vFile)','\',-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vDate = Date(Date#(Left('$(vFileName)',8),'YYYYMMDD'),'YYYYMMDD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;tmpFiles:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load '$(vFile)' as File,&amp;nbsp; '$(vFileName)' as FileName, '$(vDate)' as Date AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Files:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD Max(Date) as Date RESIDENT tmpFiles;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LEFT JOIN (Files)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD File, Date RESIDENT tmpFiles;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE tmpFiles;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For i = 0 to NoOfRows('Files') -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vSourceFile = peek('File',$(i),'Files');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM [$(vSourceFile)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(txt, codepage is 28599, embedded labels, delimiter is ',', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any advice?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114417#M604317</guid>
      <dc:creator>martin_hamilton</dc:creator>
      <dc:date>2018-07-24T13:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114418#M604318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks like an error from Qlik Sense. Qlik Sense uses LIB references to files instead of paths like Qlikview does. You'll have to define a folder connection in Qlik Sense first to the folder that contains your csv files. Then use the LIB reference instead: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;For each vFile in FileList('LIB://&lt;STRONG&gt;MyDataDirectory&lt;/STRONG&gt;\FileListByDate\*.csv'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MyDataDirectory is in this example the name of the folder connection to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;C:\Users\martin.hamilton\Documents\Qlik\Sense\Data Directory\FileListByDate\&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114418#M604318</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-07-24T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114419#M604319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats all worked fine for a single file name with differing prefixes but when I have multiple files names to load it only picks the first one in the tmpFiles as opposed to uniquely pulling each one out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to have multiple Load statements for each file? I notice that the variable vSourceFile only contains a single file so subsequently it doesnt know about the others although it has listed them in table Files (i think this is based on the use of Peek)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as an example I would load the following tables based on the combination of date and file name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208728_example.JPG" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 21:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114419#M604319</guid>
      <dc:creator>martin_hamilton</dc:creator>
      <dc:date>2018-07-24T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114420#M604320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, more details. Wish you could have added those earlier. So we're not dealing with dates, but timestamps. And you don't want the latest date that's the same for the different kind of files, but latest timestamp per type of file, which will be different for the different kind of files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So not &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vDate = Date(Date#(Left('$(vFileName)',8),'YYYYMMDD'),'YYYYMMDD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vDate = TimeStamp(TimeStamp#(Left('$(vFileName)',8),'YYYYMMDDhhmmss'),'YYYYMMDDhhmmss');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And you need the kind of file as well: &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;LET vFileKind = Mid(SubField('$(vFile)','\',-1),15) as FileKind;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;Then you want the maximum timestamp per FileKind:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;Files:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD FileKind, Max(Date) as Date RESIDENT tmpFiles GROUP BY FileKind;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/114420#M604320</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-07-25T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load latest file based on file prefix - script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/1763255#M604321</link>
      <description>&lt;P&gt;can anyone help me i am having same kind of issue..&lt;/P&gt;&lt;P&gt;I am having a QVD extractor which extracts QVD as per the Business Date &amp;amp; Business Name&lt;/P&gt;&lt;P&gt;for e.g.&lt;/P&gt;&lt;P&gt;20200930_ABC_(Reload date and timestamp) like 20201120 18:33:10&lt;/P&gt;&lt;P&gt;20200930_DCS_20201120 18:40:20&lt;/P&gt;&lt;P&gt;so on as and when i reload the app i have a new created generated for 4 different Business, but now into my main App i have to load all the Business data along with the latest reload date.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 13:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-latest-file-based-on-file-prefix-script/m-p/1763255#M604321</guid>
      <dc:creator>priyasawant</dc:creator>
      <dc:date>2020-11-20T13:06:01Z</dc:date>
    </item>
  </channel>
</rss>

