<?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: Qlikview load latest 3 months in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1661904#M594162</link>
    <description>&lt;P&gt;anyone can help in improving the load performance?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 04:13:11 GMT</pubDate>
    <dc:creator>DestinedTale</dc:creator>
    <dc:date>2020-01-02T04:13:11Z</dc:date>
    <item>
      <title>Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1660680#M594158</link>
      <description>&lt;P&gt;Hi, currently i have a for loop that iterate all qvd in the variable vPath.&lt;BR /&gt;Would like to know if its possible to do something like loading path 3 months in the for loop instead of iterate all qvd to lessen load time? Suspect its not working because my qvd name is not by timestap so maybe something like get the substring of the month in the qvd.&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;Qvd:&lt;BR /&gt;A_2019-09.qvd&lt;BR /&gt;A_2019-10.qvd&lt;BR /&gt;A_2019-11.qvd&lt;BR /&gt;A_2019-12.qvd&lt;/P&gt;&lt;P&gt;Current code:&lt;BR /&gt;FOR Each FoundFile in filelist('$(vPath)_A_*.qvd')&lt;/P&gt;&lt;P&gt;New code:&lt;BR /&gt;Let vLast3Months = num(AddMonths(today(),-3));&lt;BR /&gt;FOR Each FoundFile in filelist('$(vPath)_A_$(vLast3Months).qvd')&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1660680#M594158</guid>
      <dc:creator>DestinedTale</dc:creator>
      <dc:date>2024-11-16T01:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1660691#M594159</link>
      <description>&lt;P&gt;Perhaps this way?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR Each FoundFile in filelist('$(vPath)_A_*.qvd')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TableName:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load $(FoundFile) as FileNames,&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Date(Date#(Mid($(FoundFile), 3, 7), 'YYYY-MM'), 'MM-YYYY') as MonthName&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;From '$(vPath)_A_*.qvd';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Next FoundFile&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then, Play around like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vMax = Peek('MonthName', -1, 'TableName');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Let vMax-3 = Peek('MonthName', -3, 'TableName');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load FileNames, MonthName Resident TableName Where MonthName&amp;gt;='$(vMax-3') and MonthName&amp;lt;='$(vMax');&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1660691#M594159</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-26T10:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1660924#M594160</link>
      <description>&lt;P&gt;hi, thanks.&lt;/P&gt;&lt;P&gt;The issue with this is it will load all qvds then load latest 3 months which increase load time.&lt;/P&gt;&lt;P&gt;Would like to load just latest 3 months qvd without iterating all qvds in the path.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 05:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1660924#M594160</guid>
      <dc:creator>DestinedTale</dc:creator>
      <dc:date>2019-12-27T05:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1661265#M594161</link>
      <description>&lt;P&gt;any one know how to solve this? thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 01:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1661265#M594161</guid>
      <dc:creator>DestinedTale</dc:creator>
      <dc:date>2019-12-30T01:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1661904#M594162</link>
      <description>&lt;P&gt;anyone can help in improving the load performance?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 04:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1661904#M594162</guid>
      <dc:creator>DestinedTale</dc:creator>
      <dc:date>2020-01-02T04:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1662091#M594163</link>
      <description>&lt;P&gt;Do something like this in your original script. You will only load the last three files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;fileToLoad:&lt;BR /&gt;Load&lt;BR /&gt;'A_'&amp;amp;year(AddMonths(today(),-RowNo()))&amp;amp;'-'&amp;amp;num(month(AddMonths(today(),-RowNo())),'00') as fileNameToLoad&lt;BR /&gt;AutoGenerate 3;&lt;/P&gt;&lt;P&gt;for each fileName in FieldValueList('fileNameToLoad')&lt;BR /&gt;LOAD&lt;BR /&gt;Name,&lt;BR /&gt;Value&lt;BR /&gt;FROM [lib://ForEach/$(fileName).qvd]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;next fileName;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1662091#M594163</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-01-02T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1662099#M594164</link>
      <description>&lt;P&gt;what about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for each file in filelist('....\*.qvd')
   if keepchar(subfield('$(file)', '_', -1), '0123456789') &amp;gt;= year(now()-90)&amp;amp; num(Month(now()-90),'00') then
      LOAD Year, 
     Data, FileName() as Filename
FROM
[$(file)];
   end if
next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1662099#M594164</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2020-01-02T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview load latest 3 months in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1690268#M594165</link>
      <description>&lt;P&gt;Hi, this works well but only if 3 months are 30 days. What about months where they 29 days or 31 days? will it miss one or include additional month of data?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 12:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-load-latest-3-months-in-load-script/m-p/1690268#M594165</guid>
      <dc:creator>DestinedTale</dc:creator>
      <dc:date>2020-04-02T12:26:21Z</dc:date>
    </item>
  </channel>
</rss>

