<?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 multiple qvds from folder based on date (files in folder have a file name like DIFFERENCE_DAILY_LOGS_20210121_19.QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-multiple-qvds-from-folder-based-on-date-files-in-folder/m-p/1777294#M591028</link>
    <description>&lt;P&gt;one way is to generate a for next loop using file format&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;DIFFERENCE_DAILY_LOGS_$(vDATE)_*.QVD&lt;BR /&gt;&lt;/SPAN&gt;but the trick is how to generate a list with the desired dates between a date and date-5 or 30&lt;BR /&gt;one way is to create a for next loop using a list of the dates:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set vDays=5;
Dates:
load concat(chr(39) &amp;amp; Date &amp;amp; chr(39),',') as Date;
load date(today()+iterno()-1,'YYYYMMDD') as Date while iterno()&amp;lt;=$(vDays);
load 1 AutoGenerate(1);

let vDates=peek('Date',0,Dates);

NoConcatenate
data:
load null() as D
AutoGenerate(0);

for each vD in $(vDates)
	for each vFile in [DIFFERENCE_DAILY_LOGS_$(vD)_*.qvw]
	next
next;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 26 Jan 2021 00:34:48 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-01-26T00:34:48Z</dc:date>
    <item>
      <title>Load multiple qvds from folder based on date (files in folder have a file name like DIFFERENCE_DAILY_LOGS_20210121_19.QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-qvds-from-folder-based-on-date-files-in-folder/m-p/1776891#M591027</link>
      <description>&lt;P&gt;Load Mulitple Qlikview files based on name in file&lt;/P&gt;&lt;P&gt;I have an app that is pulling in hourly data and storing it as a QVD. I have to do this because the dataset is quite large. It errors out if I try to pull in a day. I had a query working for just grabbing a day before the dataset got too large to where I had to break it up hourly. In the DEV environment we have a config file that says daysofData = 5, in production the config file has daysofData = 30 (the days of data is always subject to change, hence a variable stored in a config file). The log files are every day for the past 2 months each broken up from hour 00 to hour 23. I am completely stumped on how to do this. Any ideas? Thank you so much for any help you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;daysOfData = 5&lt;/P&gt;&lt;P&gt;location of folder: $(vQVDFiles)\Raw\&lt;/P&gt;&lt;P&gt;DIFFERENCE_DAILY_LOGS_20210122_23.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_22.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_21.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_20.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_19.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_18.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_16.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_15.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210122_14.QVD&lt;BR /&gt;....&lt;BR /&gt;..&lt;/P&gt;&lt;P&gt;DIFFERENCE_DAILY_LOGS_20210121_23.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_22.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_21.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_20.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_19.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_18.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_16.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_15.QVD&lt;BR /&gt;DIFFERENCE_DAILY_LOGS_20210121_14.QVD&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LogFact:&lt;BR /&gt;LOAD&lt;BR /&gt;*&lt;BR /&gt;From [$(vQVDFiles)\Raw\DIFFERENCE_DAILY_LOGS_$(v_Date)*.QVD] (qvd);&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-qvds-from-folder-based-on-date-files-in-folder/m-p/1776891#M591027</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2024-11-16T17:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load multiple qvds from folder based on date (files in folder have a file name like DIFFERENCE_DAILY_LOGS_20210121_19.QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-qvds-from-folder-based-on-date-files-in-folder/m-p/1777294#M591028</link>
      <description>&lt;P&gt;one way is to generate a for next loop using file format&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;DIFFERENCE_DAILY_LOGS_$(vDATE)_*.QVD&lt;BR /&gt;&lt;/SPAN&gt;but the trick is how to generate a list with the desired dates between a date and date-5 or 30&lt;BR /&gt;one way is to create a for next loop using a list of the dates:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set vDays=5;
Dates:
load concat(chr(39) &amp;amp; Date &amp;amp; chr(39),',') as Date;
load date(today()+iterno()-1,'YYYYMMDD') as Date while iterno()&amp;lt;=$(vDays);
load 1 AutoGenerate(1);

let vDates=peek('Date',0,Dates);

NoConcatenate
data:
load null() as D
AutoGenerate(0);

for each vD in $(vDates)
	for each vFile in [DIFFERENCE_DAILY_LOGS_$(vD)_*.qvw]
	next
next;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jan 2021 00:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-qvds-from-folder-based-on-date-files-in-folder/m-p/1777294#M591028</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-26T00:34:48Z</dc:date>
    </item>
  </channel>
</rss>

