<?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: Monthly Qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973252#M332905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi john,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Temp:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Date)&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; Table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;ORDER BY Date;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt; 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;NoOfRows('Temp')&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;vMonth&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;('Month', &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Temp&lt;/SPAN&gt;');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MonthWise:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Table &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) = '$(vMonth)';&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;STORE&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; MonthWise &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; TableName_&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$( vMonth)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;.qvd;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; MonthWise;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 08:23:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-04T08:23:20Z</dc:date>
    <item>
      <title>Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973250#M332903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the below scenario, can any one help me on this.&lt;/P&gt;&lt;P&gt;Problem: &lt;/P&gt;&lt;P&gt;I have generated&amp;nbsp; 5 years of data in qv, now I want to generate separate qvds for each month to every year, I have tried with below code , it is generating for every month even for the current year but I need qvds for up to September for current year as I didn't have data for the coming months , and also when I reload the application daily the application will update only the current month qvd with new data generated daily. How to do this ?&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt; SET DecimalSep='.';&lt;/P&gt;&lt;P&gt; SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt; SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt; SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt; SET TimeFormat='hh:mm:ss TT';&lt;/P&gt;&lt;P&gt; SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt; SET TimestampFormat='MM/DD/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt; SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt; SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LET vmindate= num(AddYears(num(Today()),-3));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Date:&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt; Rand()+24 as Sales,&lt;/P&gt;&lt;P&gt; Date(Date,'MM/DD/YYYY') AS Date;&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt; $(vmindate)+RecNo()-1 as Date&lt;/P&gt;&lt;P&gt; AutoGenerate num(Today())-$(vmindate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Year:&lt;/P&gt;&lt;P&gt; LOAD&lt;/P&gt;&lt;P&gt; Distinct&lt;/P&gt;&lt;P&gt; Year(Date) As Year&lt;/P&gt;&lt;P&gt; Resident Date&lt;/P&gt;&lt;P&gt; Order By Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LET vYears= NoOfRows('Year');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Month:&lt;/P&gt;&lt;P&gt; LOAD&lt;/P&gt;&lt;P&gt; Distinct&lt;/P&gt;&lt;P&gt; Month(Date) As Month,&lt;/P&gt;&lt;P&gt; num(Month(Date)) As MonthNo&lt;/P&gt;&lt;P&gt; Resident Date&lt;/P&gt;&lt;P&gt; Order By Date ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LET vMonths= NoOfRows('Month');&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=0 to $(vYears)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LET vyear= Peek('Year',$(i),'Year');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FOR j=0 to $(vMonths)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LET vMonthName= Peek('Month',$(j),'Month');&lt;/P&gt;&lt;P&gt; LET vMonthNo= Peek('MonthNo',$(j),'Month');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt; Sales,&lt;/P&gt;&lt;P&gt; Month(Date) AS Month,&lt;/P&gt;&lt;P&gt; Year(Date) AS Year,&lt;/P&gt;&lt;P&gt; Date &lt;/P&gt;&lt;P&gt; Resident Date&lt;/P&gt;&lt;P&gt; Where Year(Date)=$(vyear) and num(Month(Date))=$(vMonthNo);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; STORE Sales into C:\QVDS\\$(vyear)_$(vMonthName).qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NEXT&lt;/P&gt;&lt;P&gt; NEXT&lt;/P&gt;&lt;P&gt; DROP Table Date,Month,Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXIT Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help can appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 06:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973250#M332903</guid>
      <dc:creator />
      <dc:date>2015-09-04T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973251#M332904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about making this a bit simpler? Imagine that you have a resident table with a Date and Sales field already. You can use AddMonths() and InMonth() functions to check for records that should go in the current file, like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG style=": ; color: #0000ff; font-family: courier new,courier;"&gt;LET &lt;/STRONG&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vcurrentdate&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;= &lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;AddYears&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()),-3))); &lt;SPAN style="color: #008000;"&gt;// Set start date&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff;"&gt;DO&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;WHILE&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;vcurrentdate&lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ExportSales:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;RESIDENT&lt;/SPAN&gt; Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;InMonth&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;, &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(vcurrentdate)&lt;/EM&gt;&lt;/STRONG&gt;, 0) = &lt;SPAN style="color: #0000ff;"&gt;true&lt;/SPAN&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vdatestring&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(vcurrentdate)&lt;/EM&gt;&lt;/STRONG&gt;, 'YYYY_MMM');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #008000;"&gt;//&amp;nbsp; STORE Sales INTO &lt;C&gt; (qvd); // Your export file name&lt;BR /&gt;&lt;/C&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;STORE&lt;/STRONG&gt; ExportSales &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; [.\$(vdatestring).QVD] (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;); // Mine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; ExportSales;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vcurrentdate&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(vcurrentdate)&lt;/EM&gt;&lt;/STRONG&gt;, 1));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;LOOP &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See also document in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973251#M332904</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-04T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973252#M332905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi john,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Temp:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Date)&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; Table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;ORDER BY Date;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt; 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;NoOfRows('Temp')&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;vMonth&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;('Month', &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Temp&lt;/SPAN&gt;');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MonthWise:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Table &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) = '$(vMonth)';&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;STORE&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; MonthWise &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; TableName_&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$( vMonth)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;.qvd;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; MonthWise;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973252#M332905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-04T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973253#M332906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, you helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited: if possible could you please explain how the code will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973253#M332906</guid>
      <dc:creator />
      <dc:date>2015-09-04T08:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973254#M332907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the following, the code should be self-explaining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Instead of precalculating a MonthYear table, we define a starting date and use a loop to successively add a single month to this date.&lt;/LI&gt;&lt;LI&gt;The loop stops when we reach the current month (using Today())&lt;/LI&gt;&lt;LI&gt;Every cycle consists of an extraction (into a separate table called ExportSales) of all rows whose date falls in the current YearMonth loop period. We use InMonth() to check whether a date falls in the month of a basedate.&lt;/LI&gt;&lt;LI&gt;From the current loop date, we calculate a YearMonth string representation and save the new export table to a file with a name using that string representation.&lt;/LI&gt;&lt;LI&gt;Next we drop the export table. It will be recreated with different data during the next loop cycle.&lt;/LI&gt;&lt;LI&gt;Next we add a single month to the loop variable and start over again.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973254#M332907</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-04T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973255#M332908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW this simple version doesn't check for missing data (e.g. a particular month may have no sales records). If you do not want any empty QVD's to be generated, you can use NoOfRows() to check whether the current ExportSales table has any rows at all, and skip the STORE if there aren't any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 08:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973255#M332908</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-04T08:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973256#M332909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter Cammaert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of InMonth, if I use InMonthTodate, it will check for that date only right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited:&amp;nbsp; Peter for the same data I want to generate qvds period wise, if the period1 starts May 25th every year and the last period ends at May 24th next year how do I do it?&amp;nbsp; Each period has 28 days. Total 13 Periods for one complete year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 09:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973256#M332909</guid>
      <dc:creator />
      <dc:date>2015-09-04T09:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973257#M332910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;No not really. XXXToDate usually means "From the very start of XXX until the current date". While InMonth will simply check whether a specific date falls in the specified month (may include future dates), InMonthToDate will check whether a date is between the start of a particular month, and the current day number of that particular month (the 4th in our case). InYearToDate checks for&amp;nbsp; Jan 1, 2015 to Sep 4, 2015. InYear checks whether a date lies in 2015.&lt;BR /&gt;See &lt;EM&gt;QV Help - Date and Time functions&lt;/EM&gt; for an explanation and various examples.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Edited...&lt;/EM&gt; Better start a new discussion before we move entirely off-topic.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 10:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973257#M332910</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-04T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973258#M332911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks neetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 10:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-Qvd/m-p/973258#M332911</guid>
      <dc:creator />
      <dc:date>2015-09-04T10:38:28Z</dc:date>
    </item>
  </channel>
</rss>

