<?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 only the latest files into Qlik in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228541#M858392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks m w....&lt;/P&gt;&lt;P&gt;Since, our loads are scheduled after the files are dumped (which is also scheduled), is it possible to sort the files by date (latest being the first) and then check if it matches the date of the load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 20:33:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-24T20:33:49Z</dc:date>
    <item>
      <title>How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228536#M858387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a directory where we are generating a couple of files on a regular basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\\path\...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_01232017a.xls&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/23/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_01232017b.xls&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/23/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_01142017a.xls&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/14/2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_01142017b.xls&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/14/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_&lt;EM&gt;nnnnnnnn&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;a.xls&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;mm/dd/yyyy&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;file_&lt;/SPAN&gt;&lt;EM&gt;&lt;EM style="font-size: 13.3333px;"&gt;nnnnnnnnb&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.xls&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;mm/dd/yyyy&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Since the initial load, we have been manually updating the path for these 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;Data1:&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;FROM [\\path\&lt;STRONG style="font-size: 13.3333px;"&gt;file_01232017a.xls&lt;/STRONG&gt;] (biff, embedded labels, table is filea$);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Data2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM [\\path\&lt;STRONG style="font-size: 13.3333px;"&gt;file_01232017b.xls&lt;/STRONG&gt;] (biff, embedded labels, table is fileb$);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can we update this script so that it automatically just pulls the latest date (1/23/2017) of these two files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;&lt;P&gt;Trista&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228536#M858387</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228537#M858388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8912"&gt;Load latest Excel file to Qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228537#M858388</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T19:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228538#M858389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One problem with trying to load the latest files is that over time the number of files in the folder increases and every file must be read to get the filetime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these files are being placed into the folder by some kind of batch job, consider moving the existing files into a backup folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your load can be *.xls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228538#M858389</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-01-24T20:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228539#M858390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That solution is based on the characters of the filename. I would like to take the date of the file (modified or created) and check if it is the latest date compared to the rest of the files in the directory, if that's possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228539#M858390</guid>
      <dc:creator />
      <dc:date>2017-01-24T20:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228540#M858391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FileTime() instead of FileName function to determine the time on similar files.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/FileFunctions/FileTime.htm" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/FileFunctions/FileTime.htm"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/FileFunctions/FileTime.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228540#M858391</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T20:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228541#M858392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks m w....&lt;/P&gt;&lt;P&gt;Since, our loads are scheduled after the files are dumped (which is also scheduled), is it possible to sort the files by date (latest being the first) and then check if it matches the date of the load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 20:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228541#M858392</guid>
      <dc:creator />
      <dc:date>2017-01-24T20:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228542#M858393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if num(month(Today(0)))&amp;lt;10 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFileDateMonth = '0' &amp;amp; num(month(Today(0)));&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFileDateMonth = num(month(Today(0)));&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Day(Today(0))&amp;lt;10 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFileDateDay = '0' &amp;amp; Day(Today(0));&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vFileDateDay = Day(Today(0));&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFileDateYear = year(Today(0));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFileDate = vFileDateMonth &amp;amp; vFileDateDay &amp;amp; vFileDateYear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data1:&lt;/P&gt;&lt;P&gt;LOAD...&lt;/P&gt;&lt;P&gt;FROM [\\path\file_$(vFileDate)*.xls] (biff, embedded labels, table is filea$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 21:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228542#M858393</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-01-24T21:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only the latest files into Qlik</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228543#M858394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for providing this approach! It's formulating the date string to then add to the filename to grab that day's file. Since, this may be more maintenance work, we may just go with your original suggestion...save the existing files in a backup folder to allow access to just the latest files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 21:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-the-latest-files-into-Qlik/m-p/1228543#M858394</guid>
      <dc:creator />
      <dc:date>2017-01-24T21:32:59Z</dc:date>
    </item>
  </channel>
</rss>

