<?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: Implement 12 rolling months in in a table ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580851#M215787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i generate a calendar between&amp;nbsp; the vPrevMonthYear and vCurrMonthYear ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 19:41:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-02T19:41:22Z</dc:date>
    <item>
      <title>Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580845#M215781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the table displays data from jan to current month (see fig below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="57368" alt="rolling.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/57368_rolling.png" style="width: 620px; height: 32px;" /&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display data from current month to previous 12 months&lt;/P&gt;&lt;OL style="list-style-type: lower-roman;"&gt;&lt;LI&gt;i.e&amp;nbsp; from May 2013 to April 2014 .Want it to be dynamic.(see below)&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 879px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="15"&gt; &lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;May&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;jun&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;July&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Aug&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Sep&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Oct&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Nov&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Dec&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Jan&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Feb&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;Mar&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" width="72"&gt;&lt;SPAN style="color: #000080;"&gt;April&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;52,850&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;47,806&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;52,822&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;51,114&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;52,818&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;51,114&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;52,818&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;52,818&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;51,114&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;52,818&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;51,114&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;52,818&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580845#M215781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T20:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580846#M215782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes yo can make it rolling months refer the below URL for rolling months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580846#M215782</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-15T20:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580847#M215783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did go through the post, I don't know if it would solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering should I use a variable that holds current month ..then display previous months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the besgt way to implement the solution, using set analysis or in the script editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580847#M215783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T20:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580848#M215784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to load only the previous 12 months ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 21:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580848#M215784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T21:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580849#M215785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script level you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create two variables which is based on the Monthyear because you want rolling 12 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPrevMonthYear = Num(AddMonths(MonthYear,-12)) ;&lt;/P&gt;&lt;P&gt;vCurrMonthYear = Num(MonthYear) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use in script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension :- Monthyear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it is a sales value you change according to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression :- =Sum({$&amp;lt;MonthYear = {"&amp;gt;$(vPrevMonthYear) &amp;lt;=$(vCurrMonthYear)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 21:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580849#M215785</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-15T21:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580850#M215786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is rolling back 12 months problem solve if so then mark the thread as Correct or helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 11:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580850#M215786</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-18T11:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580851#M215787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i generate a calendar between&amp;nbsp; the vPrevMonthYear and vCurrMonthYear ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 19:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580851#M215787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-02T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Implement 12 rolling months in in a table ?</title>
      <link>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580852#M215788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&amp;nbsp; a creating a flag based on your date field or you could also create a seperate column in the script editor&amp;nbsp; for rolling months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Your_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),'YYYY-MM-DD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Your_DATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthend&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),'MMM-YYYY')),-12) ,'YYYY-MM-DD'),1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rolling_flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Your_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),'YYYY-MM-DD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Your_DATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthend&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),'MMM-YYYY')),-12) ,'YYYY-MM-DD'),Y&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;our_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ROLLING_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 19:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Implement-12-rolling-months-in-in-a-table/m-p/580852#M215788</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2014-05-06T19:00:01Z</dc:date>
    </item>
  </channel>
</rss>

