<?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: Generation of QVD's by Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752432#M268135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;excel file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 09:48:51 GMT</pubDate>
    <dc:creator>nihhalmca</dc:creator>
    <dc:date>2014-11-03T09:48:51Z</dc:date>
    <item>
      <title>Generate QVD's for each 5 years</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752429#M268132</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 want to generate multiple Qvd's by single load.&lt;/P&gt;&lt;P&gt;Ex: i have data from 1990 to current year (2014).&lt;/P&gt;&lt;P&gt;i want to generate multiple qvd's by perform single load.&lt;/P&gt;&lt;P&gt;QVD 1 should have data from 1990 to 1994&lt;/P&gt;&lt;P&gt;QVD 2 should have data from1995 to 1999&lt;/P&gt;&lt;P&gt;QVD 3 should have data from 2000 to 2004&lt;/P&gt;&lt;P&gt;QVD 4 should have data from 2005 to 2009&lt;/P&gt;&lt;P&gt;QVD 5 should have data from 2010 to 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, how can write for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nihhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 09:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752429#M268132</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2014-11-03T09:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752430#M268133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you specify from &lt;STRONG&gt;where&lt;/STRONG&gt; you want to load the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 09:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752430#M268133</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-11-03T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752431#M268134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for x = 1 to 20&lt;/P&gt;&lt;P&gt;'QVD$(x)to$(=x+4)':&lt;/P&gt;&lt;P&gt;load * &lt;/P&gt;&lt;P&gt;from Source &lt;/P&gt;&lt;P&gt;where Year &amp;gt;= $(=1990+x) and Year &amp;lt;= (1990 + x + 4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store 'QVD$(x)to$(=x+4)' into 'QVD$(x)to$(=x+4)'.qvd (qvd);&lt;/P&gt;&lt;P&gt;drop table 'QVD$(x)to$(=x+4)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let x = x+4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next x&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 09:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752431#M268134</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-11-03T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752432#M268135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;excel file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 09:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752432#M268135</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2014-11-03T09:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752433#M268136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are multiple Excel files, and you want a QVD for each of them this article may be of use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/convert-drop-folder-files-qvd/" style="font-size: 10pt; line-height: 1.5em;" title="http://www.quickintelligence.co.uk/convert-drop-folder-files-qvd/"&gt;http://www.quickintelligence.co.uk/convert-drop-folder-files-qvd/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simen's code will work if it is all in one file, but I believe you can lose the +4 at the end and add a step statement to the for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752433#M268136</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-11-03T10:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752434#M268137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Source is single file. it has data from 1990 to 2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752434#M268137</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2014-11-03T10:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752435#M268138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the rationale behind multiple QVDs then?  This will slow the load&lt;/P&gt;&lt;P&gt;process considerably as the Excel file will need to be parsed for each four&lt;/P&gt;&lt;P&gt;year period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752435#M268138</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-11-03T10:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752436#M268139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need to generate every 5 years as 1 QVD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried, however i have generated 4 qvds by single load but Qvds has full data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752436#M268139</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2014-11-03T10:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of QVD's by For Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752437#M268140</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;Try this sample script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;1990 + RecNo() - 1 AS Year&lt;/P&gt;&lt;P&gt;AutoGenerate 24;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for x = 1 To 5&lt;/P&gt;&lt;P&gt;LET vEndYear = vStartYear + 4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vFileName = 'QVD' &amp;amp; ($(vStartYear)) &amp;amp; 'to' &amp;amp;&amp;nbsp; ($(vEndYear)) ;&lt;/P&gt;&lt;P&gt;[$(vFileName)]:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;where Year &amp;gt;= $(vStartYear) and Year &amp;lt;= $(vEndYear);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store $(vFileName) into $(vFileName).qvd (qvd);&lt;/P&gt;&lt;P&gt;drop table $(vFileName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartYear = vStartYear + 5;&lt;/P&gt;&lt;P&gt;next x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Just replace Temp table with your actual data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-QVD-s-for-each-5-years/m-p/752437#M268140</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-04T08:07:23Z</dc:date>
    </item>
  </channel>
</rss>

