<?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 Load only Latest two months files in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060568#M87020</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone&amp;nbsp;help me on below requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I have multiple Qvd files with naming as below&lt;BR /&gt;&lt;BR /&gt;1.Products_New_202201.qvd&lt;BR /&gt;2.Products_New_202112.qvd&amp;nbsp;&lt;BR /&gt;3.Products_New_202111.qvd&lt;BR /&gt;4.Products_New_202110.qvd&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here I need to load only latest two months files from the folder also files don't have the date fields.&lt;BR /&gt;&lt;BR /&gt;please help me on this&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:53:50 GMT</pubDate>
    <dc:creator>379SSS</dc:creator>
    <dc:date>2024-11-15T21:53:50Z</dc:date>
    <item>
      <title>Load only Latest two months files</title>
      <link>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060568#M87020</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone&amp;nbsp;help me on below requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I have multiple Qvd files with naming as below&lt;BR /&gt;&lt;BR /&gt;1.Products_New_202201.qvd&lt;BR /&gt;2.Products_New_202112.qvd&amp;nbsp;&lt;BR /&gt;3.Products_New_202111.qvd&lt;BR /&gt;4.Products_New_202110.qvd&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here I need to load only latest two months files from the folder also files don't have the date fields.&lt;BR /&gt;&lt;BR /&gt;please help me on this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060568#M87020</guid>
      <dc:creator>379SSS</dc:creator>
      <dc:date>2024-11-15T21:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load only Latest two months files</title>
      <link>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060580#M87021</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/150757"&gt;@379SSS&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;
&lt;P&gt;let &lt;STRONG&gt;vFolderPath&lt;/STRONG&gt; ='lib://Store QVD/Data';&lt;/P&gt;
&lt;P&gt;Files:&lt;BR /&gt;&lt;STRONG&gt;first 1&lt;/STRONG&gt; LOAD&lt;BR /&gt;SubField(FileBaseName(),'_',-1) as FileMonth,&lt;BR /&gt;FileName() as FileName&lt;BR /&gt;FROM [&lt;STRONG&gt;$(vFolderPath)&lt;/STRONG&gt;/&lt;STRONG&gt;Products_New_&lt;FONT color="#FF0000"&gt;*&lt;/FONT&gt;&lt;/STRONG&gt;.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;Latest2Months:&lt;BR /&gt;&lt;STRONG&gt;first 2&lt;/STRONG&gt; load FileName&lt;BR /&gt;Resident Files&lt;BR /&gt;Order by FileMonth desc;&lt;/P&gt;
&lt;P&gt;Drop Table Files;&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load 0 as Temp&lt;BR /&gt;AutoGenerate 0;&lt;/P&gt;
&lt;P&gt;for i=1 to FieldValueCount('FileName')&lt;/P&gt;
&lt;P&gt;let &lt;STRONG&gt;vFileName&lt;/STRONG&gt; = FieldValue('FileName',$(i));&lt;/P&gt;
&lt;P&gt;Concatenate(Data)&lt;BR /&gt;Load *&lt;BR /&gt;FROM [&lt;STRONG&gt;$(vFolderPath)/$(vFileName)&lt;/STRONG&gt;]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;Next&lt;/P&gt;
&lt;P&gt;Drop Field Temp;&lt;/P&gt;
&lt;P&gt;Drop Table Latest2Months;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060580#M87021</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-04-14T15:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load only Latest two months files</title>
      <link>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060730#M87029</link>
      <description>&lt;P&gt;Thanks! &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;. It's working now&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 10:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-only-Latest-two-months-files/m-p/2060730#M87029</guid>
      <dc:creator>379SSS</dc:creator>
      <dc:date>2023-04-16T10:48:33Z</dc:date>
    </item>
  </channel>
</rss>

