<?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 Rolling Months Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226794#M78960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you found a good solotion, you could publish it for the benefit of other users, who have the same challenge. This would infact make the topic valueable.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 09:29:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-20T09:29:15Z</dc:date>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226792#M78958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;Hi All,&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;I need to analyze data on 12 Rolling Months on Months itself on dimension. I used MonthName([Agent Month]) in Dimension and Expression as follows:&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;sum({$&amp;lt;[Agent Year]=,[Agent Month]=,[Agent FiscalYear]=,[Agent Date]={"&amp;lt;=$(vAgentMaxDate) &amp;gt;=$(vAgent12LessDate)"}&amp;gt;} Agent.NIC))&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;This gives me all rolling 12 months on dimension, BUT the SUM() gives "FOR THE MONTH" amount. i want the amount also for 12 Rolling Months, i.e&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;Dimesion Amount&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;2010Dec Data of (2010Dec TO 2010Jan)&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;2010Nov Data of (2010Nov TO 2009Dec)&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;2010Oct Data of (2010Oct TO 2009Nov)&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;....&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;2010Jan ....&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;Any Suggestion?&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 11:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226792#M78958</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-17T11:42:03Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226793#M78959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, Thanks for NO response . are you surprised ? don't be so. i really thank for No response. because this made me find my own solution...a tricky one. i have found a solution for the same to implement at front end. you are welcome .&lt;/P&gt;&lt;P&gt;One thing, please don't leave always to find my own solution ..... ha..ha.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 06:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226793#M78959</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-20T06:08:33Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226794#M78960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you found a good solotion, you could publish it for the benefit of other users, who have the same challenge. This would infact make the topic valueable.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226794#M78960</guid>
      <dc:creator />
      <dc:date>2010-12-20T09:29:15Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226795#M78961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens,&lt;/P&gt;&lt;P&gt;You are right. So let me explain what i did.&lt;/P&gt;&lt;P&gt;i have used two variables , vMaxDate and v24MonthsLess. then at the front end used the formula:&lt;/P&gt;&lt;P&gt;Rangesum(Below(Sum({&amp;lt;Date={'&amp;lt;=$(vMaxDate) &amp;gt;=$(v24LessMonths)'}&amp;gt;}),0,12))&lt;/P&gt;&lt;P&gt;Then sorted the dimension on numeric value (for MonthName(Date)) in descending order. This gives me my desired result, only with a limitation of sort order. The last 12 months gives me the perfect values, because the BELOW function calculates on accumulation of last 12 months. 12 extra i had to use because, the last rolling months needs to get back to previous 12 months amount.&lt;/P&gt;&lt;P&gt;at the presentation tab, make the maximum visible columns to 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i have been able to explain my logic upto some extent.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 09:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226795#M78961</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-20T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226796#M78962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the another solution&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;I have used two variables which will have the min and max month...and month is in "YYYYMM" format...using the for loop I have calculated the rolling 3 months sales...&lt;/P&gt;&lt;P&gt;for i=$(V_Min_Month) to $(V_Max_Month)&lt;/P&gt;&lt;P&gt;Let V_Month_To=if(match(right($(i),2),01,02,03),$(i)-91,$(i)-3); //&lt;EM&gt;To find out the previous 3 months&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;if right($(i),2)&amp;lt;13 then&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD&lt;BR /&gt; $(i) as YearMonth,&lt;BR /&gt; Sales&lt;BR /&gt;FROM&lt;BR /&gt;Sales.xls&lt;BR /&gt;(biff, embedded labels, table is Sample$)&lt;BR /&gt;Where Month&amp;lt;$(i)&lt;BR /&gt;and Month&amp;gt;=$(V_Month_To);&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;Next i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 14:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226796#M78962</guid>
      <dc:creator />
      <dc:date>2010-12-20T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226797#M78963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala,&lt;/P&gt;&lt;P&gt;Good to get another solution, but doing at backend would make this static, so i would suggest to do it at the front end to have the dynamic output (i.e - selection based). if i am wrong, please correct me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 05:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226797#M78963</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-21T05:41:25Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226798#M78964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If we calculate this rolling months at the front end then this calculation should be performed whenever the user changes the selections...But this will be calculated only once if we do it at the script level...&lt;/P&gt;&lt;P&gt;Rangesum(Below(Sum({&amp;lt;Date={'&amp;lt;=$(vMaxDate) &amp;gt;=$(v24LessMonths)'}&amp;gt;}),0,12))&lt;/P&gt;&lt;P&gt;Using this formula can you see any values if you select one month alone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 06:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226798#M78964</guid>
      <dc:creator />
      <dc:date>2010-12-21T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226799#M78965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Certainly. If you select a month alone, it would calculate the maxdate accordingly and then starting from that month itself it would show all rolling 12 months. and yes for that you have to bypass the MONTH and YEAR in set analysis like:&lt;/P&gt;&lt;P&gt;Rangesum(Below(Sum({&amp;lt;Month=,Year=,Date={'&amp;lt;=$(vMaxDate) &amp;gt;=$(v24LessMonths)'}&amp;gt;}),0,12))&lt;/P&gt;&lt;P&gt;Hope this would help.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 07:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226799#M78965</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-21T07:08:02Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226800#M78966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;We can add other fields also in the for loop so that the chart will give the dynamic output...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 07:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226800#M78966</guid>
      <dc:creator />
      <dc:date>2010-12-21T07:21:51Z</dc:date>
    </item>
    <item>
      <title>Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226801#M78967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco for being interested in my post.&lt;/P&gt;&lt;P&gt;Finally I got my desired result, so I think it won't be necessary to look into your post.&lt;/P&gt;&lt;P&gt;Anyways, I've attached a demo of my final result. So you can compare both solutions.&lt;/P&gt;&lt;P&gt;See you around!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 12:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226801#M78967</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-12-21T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226802#M78968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use the formula mentioned by you, but somehow not getting the correct result by slight difference.&lt;/P&gt;&lt;P&gt;Just confirming for the variable v24LessMonths, is it something like this addmonths(Date,-24)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neelam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226802#M78968</guid>
      <dc:creator />
      <dc:date>2014-12-01T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226803#M78969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I even don't remember that I had a post like that. It has been 4 years now. I don't recollect it exactly, but it seems to be so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226803#M78969</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-12-01T11:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Months Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226804#M78970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lol...ok ya I realized later after posting that it was in 2010 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;Facing the same issue, so searched and got your post out of result.....&lt;/P&gt;&lt;P&gt;Thanks for the reply anyways...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Months-Analysis/m-p/226804#M78970</guid>
      <dc:creator />
      <dc:date>2014-12-01T11:52:29Z</dc:date>
    </item>
  </channel>
</rss>

