<?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: Loading Latest File From A Folder Into Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53645#M773574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are u want letest file it means ur maxdate file like 05-08-2018Testing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2018 05:40:21 GMT</pubDate>
    <dc:creator>vishalarote</dc:creator>
    <dc:date>2018-05-18T05:40:21Z</dc:date>
    <item>
      <title>Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53644#M773573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had came across a weird situation whereby I was unable to load the latest file from a folder into my Qlikview Dashboard. My excel files inside the folder were look like below: (The date format is MM-DD-YYYY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202724_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script I was using currently is: (But it keeps getting 12-31-2017Testing as the latest file) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;ErrorMode&lt;/EM&gt;&lt;/STRONG&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Set&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vPath2&lt;/EM&gt;&lt;/STRONG&gt; = 'C:\Users\QianNing\Desktop\3In1\ABB';&amp;nbsp; &lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vMaxDate2&lt;/EM&gt;&lt;/STRONG&gt; = 0;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;For&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Each&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;File2&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FileList&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;vPath2&lt;/SPAN&gt; &amp;amp;'\??-??-????Testing.xls')&amp;nbsp; &lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vDate2&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;File&lt;/SPAN&gt;, 10), 'MM-dd-yyyy');&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;If&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;vDate2&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="color: #800000;"&gt;vMaxDate2&lt;/SPAN&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Then&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vMaxDate2&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #800000;"&gt;vDate2&lt;/SPAN&gt;;&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vMaxFile2&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #800000;"&gt;File2&lt;/SPAN&gt;;&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;End&lt;/STRONG&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;If&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Next&lt;/STRONG&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;t1:&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;date&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;[$(File2)]&lt;/SPAN&gt;&lt;BR /&gt;(&lt;SPAN style="color: #0000ff;"&gt;biff&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; A_FINAL$);&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Couldn't figure out where went wrong and appreciate your time for the help! I had attach my folder (With files) and qvw to ease your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&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/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53644#M773573</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53645#M773574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are u want letest file it means ur maxdate file like 05-08-2018Testing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 05:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53645#M773574</guid>
      <dc:creator>vishalarote</dc:creator>
      <dc:date>2018-05-18T05:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53646#M773575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. The latest file I would like to get is : 05-08-2018Testing. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 05:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53646#M773575</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2018-05-18T05:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53647#M773577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Set vPath2 = 'C:\Users\Kaushik\Downloads\ABB\ABB';&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vMaxDate2 = 0;&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 Each File2 in FileList(vPath2 &amp;amp;'\*testing.xls')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vDate2 = Date(Date#(Left(right(File2,21), 10), 'MM-dd-yyyy'));&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;If vDate2 &amp;gt; vMaxDate2 Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vMaxDate2 = vDate2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vMaxFile2 = File2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;End If&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;t1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load date&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;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[$(vMaxFile2)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(biff, embedded labels, table is A_FINAL$); &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;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 05:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53647#M773577</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-05-18T05:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53648#M773578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for pointing out my mistakes over date function. Your solution works like a charm! Have a good day! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 06:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53648#M773578</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2018-05-18T06:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53649#M773581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice one Kaushik...&lt;/P&gt;&lt;P&gt;Instead of left and right function use mid(File2,1,10) this will also take perfect date.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vishal Arote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 06:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53649#M773581</guid>
      <dc:creator>vishalarote</dc:creator>
      <dc:date>2018-05-18T06:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53650#M773582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SET ErrorMode = 0, then d&lt;/SPAN&gt;on't forget to reset the error mode to 1!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 06:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53650#M773582</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-05-18T06:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Latest File From A Folder Into Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53651#M773583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean I need to set ErrorMode = 1 at the end of my entire script? What will happen if I did not reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 06:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Latest-File-From-A-Folder-Into-Qlikview/m-p/53651#M773583</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2018-05-18T06:30:54Z</dc:date>
    </item>
  </channel>
</rss>

