<?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 todays date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905264#M1217881</link>
    <description>&lt;P&gt;Let vFileName = 'YourPathHere\DataFile_' &amp;amp; date(today(),'YYYYMMDD' &amp;amp; '.xls';&lt;/P&gt;
&lt;P&gt;If NOT isnull(FileSize('$(vFileName )') THEN&lt;/P&gt;
&lt;P&gt;// Load stuff here&lt;/P&gt;
&lt;P&gt;END IF&lt;/P&gt;
&lt;P&gt;Have a look at &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-check-if-a-file-exists/td-p/518834" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-check-if-a-file-exists/td-p/518834&lt;/A&gt; - the rest is just building the correct string for your file path and name. &lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 10:43:00 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-03-15T10:43:00Z</dc:date>
    <item>
      <title>load latest file based on todays date</title>
      <link>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905260#M1217880</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I have the filename in the below format and I want to only load the file if it belongs to today's date in the folder. If not, then don't load.&lt;/P&gt;
&lt;P&gt;FileName:&lt;BR /&gt;DataFile_YYYYMMMDD.xlsx&lt;BR /&gt;eg- DataFile_2022Mar15.xlsx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 10:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905260#M1217880</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2022-03-15T10:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: load latest file based on todays date</title>
      <link>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905264#M1217881</link>
      <description>&lt;P&gt;Let vFileName = 'YourPathHere\DataFile_' &amp;amp; date(today(),'YYYYMMDD' &amp;amp; '.xls';&lt;/P&gt;
&lt;P&gt;If NOT isnull(FileSize('$(vFileName )') THEN&lt;/P&gt;
&lt;P&gt;// Load stuff here&lt;/P&gt;
&lt;P&gt;END IF&lt;/P&gt;
&lt;P&gt;Have a look at &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-check-if-a-file-exists/td-p/518834" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-check-if-a-file-exists/td-p/518834&lt;/A&gt; - the rest is just building the correct string for your file path and name. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 10:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905264#M1217881</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-03-15T10:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: load latest file based on todays date</title>
      <link>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905347#M1217891</link>
      <description>&lt;P&gt;Thank you so much for your help.&amp;nbsp; It solves my issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just wondering if the latest file is not available, i want to pick Yesterday's file. How can i add that to the code?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 13:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905347#M1217891</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2022-03-15T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: load latest file based on todays date</title>
      <link>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905412#M1217893</link>
      <description>&lt;P&gt;Add an ELSE section to your IF THEN block, set the vFileName to yesterday's file which would be today()-1, and then load that.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-latest-file-based-on-todays-date/m-p/1905412#M1217893</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-03-15T14:34:14Z</dc:date>
    </item>
  </channel>
</rss>

