<?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 most recent file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/1529384#M1103620</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar scenario... i have multiple csv files in a folder and I want to only load most recent files in qvd Not the old one..I am using following code its giving an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET vToday = date(today(), 'DDMMYYYY');&lt;BR /&gt;Order_Data:&lt;BR /&gt;LOAD distinct&lt;BR /&gt;Plant,&lt;BR /&gt;OrderNo,&lt;BR /&gt;OrderDate,&lt;BR /&gt;OrderType,&lt;BR /&gt;DistChannel,&lt;BR /&gt;Division,&lt;BR /&gt;NCODE,&lt;BR /&gt;Season,&lt;BR /&gt;MatType,&lt;BR /&gt;Style,&lt;BR /&gt;Color,&lt;BR /&gt;Size,&lt;BR /&gt;OrderQty,&lt;BR /&gt;OrderValue,&lt;BR /&gt;ConfirmedQty,&lt;BR /&gt;ConfirmedValue,&lt;BR /&gt;MRP&lt;BR /&gt;FROM $(&lt;SPAN&gt;vToday&amp;nbsp;)&lt;/SPAN&gt; [D:\Qlik_OrderSheets\OrderSheets\QLIK*]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt;store Order_Data into C:\Users\dmsadmin\Desktop\New folder\QVD\extract_qvd\Order_Data.qvd;&lt;BR /&gt;drop table Order_Data;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 10:20:09 GMT</pubDate>
    <dc:creator>sakshikaul</dc:creator>
    <dc:date>2019-01-11T10:20:09Z</dc:date>
    <item>
      <title>How to load only most recent file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575131#M1103612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still getting up to speed on using Qlikview, but ran across an issue that I've been struggling to resolve.&amp;nbsp; My users place a file into the same folder every day, with the current date appended to the file name.&amp;nbsp; For example, today's file would be named 28032014MyFile.xls, tomorrow would be 29032014MyFile.xls, 30032014MyFile.xls, ....etc.&amp;nbsp; The appended date is DDMMYYYY format.&lt;/P&gt;&lt;P&gt;What I'm trying to do is have my load script pull only the most recent file from this folder.&amp;nbsp; The older files need to remain in the folder for archive reasons, and the users don't want to have to move or rename the old files every day.&amp;nbsp; But for Qlikview I can use just the current day.&amp;nbsp; How can I have my load statement use only today's file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575131#M1103612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only most recent file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575132#M1103614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vToday = date(today(), 'DDMMYYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM $(vToday)MyFile.xls;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575132#M1103614</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-28T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only most recent file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575133#M1103615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let path_Alles = '..\..\qlik\myfile_*.xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each File in filelist (path_Alles)&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(left(right(File,11),4)&amp;lt;=$(myVar)) then&lt;/P&gt;&lt;P&gt;myTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(File) (ooxml, embedded labels, table is myTab)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where mycondition;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;next File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyVar contains the date of today or what you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575133#M1103615</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-28T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only most recent file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575134#M1103617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Nicole!&amp;nbsp; It worked just as i wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 15:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575134#M1103617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-31T15:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only most recent file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575135#M1103618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have similar scenario .I have a folder with excel files.I don't want to reload old files every day but want to add new file to QVD?I tried your code but it is not working?Need help&lt;/P&gt;&lt;P&gt;&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, 07 Apr 2015 19:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/575135#M1103618</guid>
      <dc:creator>chaper</dc:creator>
      <dc:date>2015-04-07T19:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only most recent file</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/1529384#M1103620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar scenario... i have multiple csv files in a folder and I want to only load most recent files in qvd Not the old one..I am using following code its giving an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET vToday = date(today(), 'DDMMYYYY');&lt;BR /&gt;Order_Data:&lt;BR /&gt;LOAD distinct&lt;BR /&gt;Plant,&lt;BR /&gt;OrderNo,&lt;BR /&gt;OrderDate,&lt;BR /&gt;OrderType,&lt;BR /&gt;DistChannel,&lt;BR /&gt;Division,&lt;BR /&gt;NCODE,&lt;BR /&gt;Season,&lt;BR /&gt;MatType,&lt;BR /&gt;Style,&lt;BR /&gt;Color,&lt;BR /&gt;Size,&lt;BR /&gt;OrderQty,&lt;BR /&gt;OrderValue,&lt;BR /&gt;ConfirmedQty,&lt;BR /&gt;ConfirmedValue,&lt;BR /&gt;MRP&lt;BR /&gt;FROM $(&lt;SPAN&gt;vToday&amp;nbsp;)&lt;/SPAN&gt; [D:\Qlik_OrderSheets\OrderSheets\QLIK*]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt;store Order_Data into C:\Users\dmsadmin\Desktop\New folder\QVD\extract_qvd\Order_Data.qvd;&lt;BR /&gt;drop table Order_Data;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 10:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-most-recent-file/m-p/1529384#M1103620</guid>
      <dc:creator>sakshikaul</dc:creator>
      <dc:date>2019-01-11T10:20:09Z</dc:date>
    </item>
  </channel>
</rss>

