<?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 the latest year qvd from the folder into qlikview in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-the-latest-year-qvd-from-the-folder-into-qlikview/m-p/1762493#M58991</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am stuck on below.&lt;/P&gt;&lt;P&gt;I have below qvd files in the folder and i want to dynamically load the latest year qvd.(wish to load only 2020year qvd)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1605687083578.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44355iCB8E0F0874C05D09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1605687083578.png" alt="Aspiring_Developer_0-1605687083578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tried below script:-&lt;/P&gt;&lt;P&gt;Let path_Pallet= '\\sdctwt0228\Sources\POAE\QVDs\Shopfloor\PPR\COPC_US83*.qvd' ;&lt;/P&gt;&lt;P&gt;for each File in filelist (path_Pallet)&lt;BR /&gt;AAA:&lt;BR /&gt;LOAD '$(File)' as FileName AutoGenerate 1;&lt;BR /&gt;next File&lt;/P&gt;&lt;P&gt;Tab:&lt;BR /&gt;LOAD MaxString(FileName) as lastFile Resident AAA;&lt;BR /&gt;LET myFile = Peek('lastFile', 0, 'Tab');&lt;BR /&gt;DROP Table AAA, Tab;&lt;/P&gt;&lt;P&gt;MyOnlyTable:&lt;BR /&gt;LOAD * From $(myFile);&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;It is not giving me the right output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1605687236704.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44356i79D9562783CBF3DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_1-1605687236704.png" alt="Aspiring_Developer_1-1605687236704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help ?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 08:14:59 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2020-11-18T08:14:59Z</dc:date>
    <item>
      <title>Load the latest year qvd from the folder into qlikview</title>
      <link>https://community.qlik.com/t5/App-Development/Load-the-latest-year-qvd-from-the-folder-into-qlikview/m-p/1762493#M58991</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am stuck on below.&lt;/P&gt;&lt;P&gt;I have below qvd files in the folder and i want to dynamically load the latest year qvd.(wish to load only 2020year qvd)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1605687083578.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44355iCB8E0F0874C05D09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1605687083578.png" alt="Aspiring_Developer_0-1605687083578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tried below script:-&lt;/P&gt;&lt;P&gt;Let path_Pallet= '\\sdctwt0228\Sources\POAE\QVDs\Shopfloor\PPR\COPC_US83*.qvd' ;&lt;/P&gt;&lt;P&gt;for each File in filelist (path_Pallet)&lt;BR /&gt;AAA:&lt;BR /&gt;LOAD '$(File)' as FileName AutoGenerate 1;&lt;BR /&gt;next File&lt;/P&gt;&lt;P&gt;Tab:&lt;BR /&gt;LOAD MaxString(FileName) as lastFile Resident AAA;&lt;BR /&gt;LET myFile = Peek('lastFile', 0, 'Tab');&lt;BR /&gt;DROP Table AAA, Tab;&lt;/P&gt;&lt;P&gt;MyOnlyTable:&lt;BR /&gt;LOAD * From $(myFile);&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;It is not giving me the right output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_1-1605687236704.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44356i79D9562783CBF3DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_1-1605687236704.png" alt="Aspiring_Developer_1-1605687236704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help ?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 08:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-the-latest-year-qvd-from-the-folder-into-qlikview/m-p/1762493#M58991</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-11-18T08:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load the latest year qvd from the folder into qlikview</title>
      <link>https://community.qlik.com/t5/App-Development/Load-the-latest-year-qvd-from-the-folder-into-qlikview/m-p/1762506#M58992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103918"&gt;@Aspiring_Developer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Let vLastYear = Year(Today())-1;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Load * from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;\\sdctwt0228\Sources\POAE\QVDs\Shopfloor\PPR\COPC_US83_$(vLastYear).qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want current year alone, change Year(Today())-1 to Year(Today()), its depends on ur requirement&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 09:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-the-latest-year-qvd-from-the-folder-into-qlikview/m-p/1762506#M58992</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-18T09:11:59Z</dc:date>
    </item>
  </channel>
</rss>

