<?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 Dynamically load the qvds upon certain date selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336547#M704068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could loop over the date range and wildcard load the qvds on each day. Something like this (where vMinDate and vMaxDate are dates selected by the user in an input box or calendar controls):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For zDate = vMinDate To vMaxDate &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set zFileMask = 'hourly_' &amp;amp; Date(zDate, 'MMDDYYYY') &amp;amp; '_*.qvd';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * From [$(zFileMask)] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2012 19:12:38 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-06-04T19:12:38Z</dc:date>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336546#M704067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help with this scenario from scripting gurus?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a&amp;nbsp; situation where I have to develop a qlikview application which will dynamically load multiple qvds depending upon the date range selected and then start the reload process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qvd files are stored as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hourly_03012012_01.qvd&lt;/P&gt;&lt;P&gt;hourly_03012012_02.qvd&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;hourly_04302012_23.qvd&lt;/P&gt;&lt;P&gt;hourly_04302012_24.qvd and so on for all 24 hours for each day for every month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending upon the selection of the dates, for example Start Date: Mar 01 2012 and End date: Mar 12th 2012:&lt;/P&gt;&lt;P&gt;Have to loop through each qvds and pick the needed, load them one after the other, via load script in order and then start the reload process on the button click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated and would save tons of my development time as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 18:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336546#M704067</guid>
      <dc:creator />
      <dc:date>2012-06-04T18:45:52Z</dc:date>
    </item>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336547#M704068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could loop over the date range and wildcard load the qvds on each day. Something like this (where vMinDate and vMaxDate are dates selected by the user in an input box or calendar controls):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For zDate = vMinDate To vMaxDate &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set zFileMask = 'hourly_' &amp;amp; Date(zDate, 'MMDDYYYY') &amp;amp; '_*.qvd';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * From [$(zFileMask)] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 19:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336547#M704068</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-04T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336548#M704069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; Jonathan has answered it almost. From what i have understood from Question I have one more thing to add.&lt;/P&gt;&lt;P&gt;if you are want to take input from user on presentation layer, You can define two variable with start and end date. &lt;/P&gt;&lt;P&gt;(can be calender objects with single value allowed). &lt;/P&gt;&lt;P&gt;once these values are passed at presentation layer can be used at script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 19:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336548#M704069</guid>
      <dc:creator>adnan_rafiq</dc:creator>
      <dc:date>2012-06-04T19:30:05Z</dc:date>
    </item>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336549#M704070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all, it works! Created a calendar object to pass the parameter at script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate all the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 19:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336549#M704070</guid>
      <dc:creator />
      <dc:date>2012-06-04T19:50:00Z</dc:date>
    </item>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336550#M704071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick question to the posted discussion above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My date object is the range of values which is Date(TempDate, 'YYYYMMDD') as QVDdates and shows me that I have picked 3 dates: 03012012, 03022012, 03032012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I use these field called QVDdates in the for loop to get the results, could you please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my screen shot for the selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;Thanks and appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 13:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336550#M704071</guid>
      <dc:creator />
      <dc:date>2012-06-05T13:41:50Z</dc:date>
    </item>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336551#M704072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No screenshot, but let's look at your question. If QVDdates is a field, then you will not be able to send those values directly to the load script.You will need to assign those values to a variable before starting the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create a button with a Set Variable action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Variable: vSelections&lt;/LI&gt;&lt;LI&gt;Set value:&amp;nbsp; =chr(39) &amp;amp; Concat(QVDdate, chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a comma separated, quoted list of you selection: Eg&amp;nbsp;&amp;nbsp; '03012012','03022012','03032012'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ForEach vQVDdate in $(vSelections)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 20:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336551#M704072</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-06T20:38:57Z</dc:date>
    </item>
    <item>
      <title>Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336552#M704073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, that worked and it was very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have another scenario which I need help with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm loading and storing daily and hourly data for everyday in seperate qvds and having seperate QVWs with&amp;nbsp; respective data by hourly to get to it later as and when needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main qlikview document has all the daily data for 2 years and granular data on hourly basis for current month only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario that I need help with is in the same qv document if a user picks certain MonthYear eg Jan_2012, upon a button click "Show Hourly Data" have to open a respective QlikView document which is saved and named as HourlyData_Jan_2012.qvw in the folder structure thus validating that it already has the current month in this qlikview document if they pick Jun_2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I persue with this as need to pass the variable or selection of Month_Year (Jan_2012) to open the qlikview document which has data pertaining to that month only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or ideas how to persue with this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 22:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336552#M704073</guid>
      <dc:creator />
      <dc:date>2012-06-06T22:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically load the qvds upon certain date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336553#M704074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar need to track changes based on daily QVD files.&lt;/P&gt;&lt;P&gt;I'm not able to retreive data into QV an receive the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;EM&gt;Cannot open file 'Q:\QVDocuments\QVD\'IPdata_'&amp;amp;Date(zDate)&amp;amp;'.qvd'' (cant find the files)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * From ['IPdata_'&amp;amp;Date(zDate)&amp;amp;'.qvd'] (qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Here is my script based on above conversation:&lt;BR /&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;zDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vMinDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vMaxDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;zFileMask&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='IPdata_'&amp;amp;Date(zDate)&amp;amp;'.qvd';&lt;BR /&gt;&lt;BR /&gt;Data:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [$(zFileMask)] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Next &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QVD's are named: IPdata_(YYYYMMDD)&amp;nbsp; = IPdata_20140825 and are located in same folder with the QV.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I have also made vMinDate and vMaxDate calendar objects (with sigle value).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sript error occurs depending on amount of days, so I asume that is not the problem..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Can you please help with this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Joni&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 11:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-the-qvds-upon-certain-date-selection/m-p/336553#M704074</guid>
      <dc:creator />
      <dc:date>2014-08-26T11:49:30Z</dc:date>
    </item>
  </channel>
</rss>

