<?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 Excel from Folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683970#M727587</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like this requires me to create Inline table with all the file names. It becomes difficult when I have 3-4 years worth of excels and pick up the latest. It should be dynamic, something using FileList perhaps? How do we do it&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 20:50:57 GMT</pubDate>
    <dc:creator>qlikwiz123</dc:creator>
    <dc:date>2020-03-11T20:50:57Z</dc:date>
    <item>
      <title>Excel Load</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683872#M727585</link>
      <description>&lt;P&gt;I have a Server folder with Excels in the folder being added every month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File Names:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;January19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;February19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;March19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;December19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;January20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;February20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to load only the latest Excel which is February20 in this case. I tried all the solutions available on the threads but nothing seems to be working with my filename format. Please advise.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683872#M727585</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2024-11-16T18:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load Latest Excel from Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683967#M727586</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// add the MY field&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FileNames:&lt;BR /&gt;load *, Date(Date#(Left(MonthYear, Len(MonthYear)-2) &amp;amp;'-'&amp;amp; Right(MonthYear,2) &amp;amp; '-01', 'MMM-YY-DD')) as MY;&lt;BR /&gt;load * inline [&lt;BR /&gt;MonthYear&lt;BR /&gt;January19&lt;BR /&gt;February19&lt;BR /&gt;March19&lt;BR /&gt;December19&lt;BR /&gt;January20&lt;BR /&gt;February20&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// resident&amp;nbsp; load 1 record order by date desc (latest excel file)&lt;/P&gt;&lt;P&gt;LastFileName:&lt;BR /&gt;First 1 load MonthYear as ExcelToLoad&lt;BR /&gt;Resident FileNames&lt;BR /&gt;order by MY desc;&lt;/P&gt;&lt;P&gt;// set the variable with the name of the excel file to load&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET vExcelToLoad = Peek('ExcelToLoad');&lt;/P&gt;&lt;P&gt;// .... load the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683967#M727586</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2020-03-11T20:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load Latest Excel from Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683970#M727587</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like this requires me to create Inline table with all the file names. It becomes difficult when I have 3-4 years worth of excels and pick up the latest. It should be dynamic, something using FileList perhaps? How do we do it&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683970#M727587</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-03-11T20:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load Latest Excel from Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683972#M727588</link>
      <description>&lt;P&gt;Used Filebase()&lt;/P&gt;&lt;P&gt;FileNames:&lt;BR /&gt;load *, Date(Date#(Left(MonthYear, Len(MonthYear)-2) &amp;amp;'-'&amp;amp; Right(MonthYear,2) &amp;amp; '-01', 'MMM-YY-DD')) as MY;&lt;BR /&gt;Load filebasename() as MonthYear&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [E:/downloads/*xlsx&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// resident load 1 record order by date desc (latest excel file)&lt;/P&gt;&lt;P&gt;LastFileName:&lt;BR /&gt;First 1 load MonthYear as ExcelToLoad&lt;BR /&gt;Resident FileNames&lt;BR /&gt;order by MY desc;&lt;/P&gt;&lt;P&gt;// set the variable with the name of the excel file to load&lt;/P&gt;&lt;P&gt;LET vExcelToLoad = Peek('ExcelToLoad');&lt;/P&gt;&lt;P&gt;// .... load the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But loads Apr19 although I have Dec19 as the latest&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683972#M727588</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-03-12T13:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load Latest Excel from Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683977#M727589</link>
      <description>&lt;P&gt;I used an inline load as an example.&lt;/P&gt;&lt;P&gt;With FileBaseName():&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;tmpFileNames:&lt;BR /&gt;FIRST 1 LOAD&amp;nbsp;&lt;BR /&gt;// SubField because I only want the month and year of the file (Apr19 Dec19)&lt;BR /&gt;SubField(FileBaseName(),'_',3) as MonthYear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;// change with your path&lt;BR /&gt;FROM [E:/downloads/HRC_C_*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Foglio1);&lt;/P&gt;&lt;P&gt;FileNames:&lt;BR /&gt;load *, Date(Date#(Left(MonthYear, Len(MonthYear)-2) &amp;amp;'-'&amp;amp; Right(MonthYear,2) &amp;amp; '-01', 'MMMM-YY-DD')) as MY&lt;BR /&gt;Resident tmpFileNames;&lt;/P&gt;&lt;P&gt;Drop Table tmpFileNames;&lt;/P&gt;&lt;P&gt;LastFileName:&lt;BR /&gt;First 1 load MonthYear as ExcelToLoad&lt;BR /&gt;Resident FileNames&lt;BR /&gt;order by MY desc;&amp;nbsp; &amp;nbsp;// order by works if MY is a date!&lt;/P&gt;&lt;P&gt;LET vExcelToLoad = Peek('ExcelToLoad');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 21:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1683977#M727589</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2020-03-11T21:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load Latest Excel from Folder</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1684156#M727590</link>
      <description>&lt;P&gt;Perfect. Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Load/m-p/1684156#M727590</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-03-12T13:50:18Z</dc:date>
    </item>
  </channel>
</rss>

