<?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: Loop Through Date and Create QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734963#M670084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;For i = 1 to NoOfRows(&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;MyTable&lt;/EM&gt;&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;verify (with a text box that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;NoOfRows(&lt;/SPAN&gt;&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;MyTable&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;) returns the right number&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 21:09:50 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-10-30T21:09:50Z</dc:date>
    <item>
      <title>Loop Through Date and Create QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734958#M670079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably a simple concept but I am not all that familiar with loops.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Basically I have the following in a table, say with a date from 01/01/2013 through today 10/30/2014.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Reported_Date, Value&lt;/P&gt;&lt;P&gt;01/01/2013, 1.5&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;06/30/2014, 1.2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;10/30/2014, 1.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to loop through and create a QVD for each date from 06/30/2014 and forward.&amp;nbsp; What's the best way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 16:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734958#M670079</guid>
      <dc:creator />
      <dc:date>2014-10-30T16:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Through Date and Create QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734959#M670080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic must be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 1 to number of rows of the table (Look for NoofRows() function)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET myDate=Peek(myDateField,$(i));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MYTAB:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noconcatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select * from MyTable where myDateField = $(myDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store * from MYTAB INTO mytab_$(myDate).qvd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table MYTAB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 16:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734959#M670080</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-30T16:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Through Date and Create QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734960#M670081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Please find the below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reported_Date, Value From source_table :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vRows =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=1 to&amp;nbsp; FieldValueCount('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reported_Date&lt;/SPAN&gt;') &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vDate = FieldValue( '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reported_Date', $(i) );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; QVDNAME_$(vDate):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LOAD * FROM ..(ur statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; STORE QVDNAME_$(vDate) FROM QVDNAME_$(vDate).qvd (qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DROP Table QVDNAME_$(vDate):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 16:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734960#M670081</guid>
      <dc:creator />
      <dc:date>2014-10-30T16:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Through Date and Create QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734961#M670082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro - thanks for your response.&amp;nbsp; I receive the following errors and am not sure why. It appears QV is having trouble understanding the variable $(vDate) in the where clause.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field not found - &amp;lt;=&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;MyTable:&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * RESIDENT Data where [REPORTED_DATE]=&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;For i = 1 to NoOfRows(Data)&lt;/P&gt;&lt;P&gt;LET vDate=Peek([REPORTED_DATE],$(i));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT Data where [REPORTED_DATE]=$(vDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store MyTable into [DailyStats_$(vDate).qvd](qvd);&lt;/P&gt;&lt;P&gt;Drop Table MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 17:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734961#M670082</guid>
      <dc:creator />
      <dc:date>2014-10-30T17:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Through Date and Create QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734962#M670083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use peek function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734962#M670083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-30T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Through Date and Create QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734963#M670084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;For i = 1 to NoOfRows(&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;MyTable&lt;/EM&gt;&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;verify (with a text box that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;NoOfRows(&lt;/SPAN&gt;&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;MyTable&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;) returns the right number&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 21:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Date-and-Create-QVD/m-p/734963#M670084</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-30T21:09:50Z</dc:date>
    </item>
  </channel>
</rss>

