<?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: pick the latest file ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234349#M85784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="12090" alt="Clipboard01.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/12090_Clipboard01.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 06:44:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-13T06:44:16Z</dc:date>
    <item>
      <title>pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234343#M85778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi togehter,&lt;/P&gt;&lt;P&gt;i want to load the latest csv file in my script and dont know how i realize it. How can i pick up the latest file from this Folder ?&lt;/P&gt;&lt;P&gt;In this case it would be the file "28779_2010-12-27.csv"&lt;/P&gt;&lt;P&gt;28779_2010-12-24.csv&lt;BR /&gt;28779_2010-12-25.csv&lt;BR /&gt;28779_2010-12-26.csv&lt;BR /&gt;28779_2010-12-27.csv&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 16:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234343#M85778</guid>
      <dc:creator />
      <dc:date>2010-12-28T16:44:16Z</dc:date>
    </item>
    <item>
      <title>pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234344#M85779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First i would create a table with all files sorted byt their date:&lt;/P&gt;&lt;P&gt;first(1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ffilepath() as FileName,&lt;/P&gt;&lt;P&gt;filetime() as [Date File]&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;xxx\*.csv&lt;/P&gt;&lt;P&gt;order by filetime() DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you take the name of the file&lt;/P&gt;&lt;P&gt;LET FileName = peek( 'FileName',0);&lt;/P&gt;&lt;P&gt;xxxx:&lt;/P&gt;&lt;P&gt;LOAD * FROM '$(FileName)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 16:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234344#M85779</guid>
      <dc:creator />
      <dc:date>2010-12-28T16:50:59Z</dc:date>
    </item>
    <item>
      <title>pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234345#M85780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastien,&lt;/P&gt;&lt;P&gt;thank you but the editor does not accept this part ... ORDER BY FileTime() DESC;&lt;/P&gt;&lt;P&gt;FileTime() is red marked ! Did something missed ?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 17:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234345#M85780</guid>
      <dc:creator />
      <dc:date>2010-12-28T17:26:19Z</dc:date>
    </item>
    <item>
      <title>pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234346#M85781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILESELEKTOR:&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;BR /&gt;FilePath() AS FileName,&lt;BR /&gt;FileName() AS DateFile&lt;BR /&gt;&lt;BR /&gt;FROM H:\Qlikview Workspace\APILoader\reports\28779*.csv (utf8, txt, delimiter is ';', no labels, msq, header is 1 lines ) ORDER BY FileTime([FileName]) DESC;&lt;BR /&gt;&lt;BR /&gt;LET FileName = peek('FileName',0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that korrekt ? Thank you very much !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 17:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234346#M85781</guid>
      <dc:creator />
      <dc:date>2010-12-28T17:35:58Z</dc:date>
    </item>
    <item>
      <title>pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234347#M85782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nobody an idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 19:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234347#M85782</guid>
      <dc:creator />
      <dc:date>2010-12-28T19:04:13Z</dc:date>
    </item>
    <item>
      <title>pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234348#M85783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Directory;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;TEMP:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;filetime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;file_time&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;filepath&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;file_path&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;filebasename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;z_file&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;filetime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;())&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;time_stamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;FROM&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;[Data\*.xls]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;Sheet1$&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;left&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;join&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; (&lt;EM&gt;TEMP&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #5a005a; font-size: 9pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;file_time&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;max_time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;resident&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;TEMP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;FINAL:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;1&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;resident&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;TEMP&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;where&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;time_stamp&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #004d00; font-size: 9pt;"&gt;max_time;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;drop&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;table&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;EM&gt;TEMP; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 06:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234348#M85783</guid>
      <dc:creator />
      <dc:date>2012-03-13T06:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: pick the latest file ?</title>
      <link>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234349#M85784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="12090" alt="Clipboard01.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/12090_Clipboard01.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 06:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pick-the-latest-file/m-p/234349#M85784</guid>
      <dc:creator />
      <dc:date>2012-03-13T06:44:16Z</dc:date>
    </item>
  </channel>
</rss>

