<?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: Rolling 12 Month Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580476#M215662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, I dont believe this will work as how would I maintain my original set of dimensions and then for each dimension (month) go back 12 months to do the sum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 14:07:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-15T14:07:56Z</dc:date>
    <item>
      <title>Rolling 12 Month Average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580471#M215657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, battled hard over that last few days to figure this one out but I had no luck.&amp;nbsp; Hopefully someone here will be able to help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following set analysis is used to create the respective chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;SPAN style="color: #3366ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;[Milestone Num]={27},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Activity Measure Code]={'WATER'},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Activity Period Month Year]={"&amp;gt;=$(&lt;SPAN style="color: #999999;"&gt;vStartMonthYear&lt;/SPAN&gt;)&amp;lt;=$(&lt;SPAN style="color: #999999;"&gt;vEndMonthYear&lt;/SPAN&gt;)"}&amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Activity Value])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension=[Activity Period Year Month]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture_chart.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/57338_Capture_chart.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;As you can see the&lt;EM&gt; vStartMonthYear&lt;/EM&gt; and&lt;EM&gt; vEndMonthYear&lt;/EM&gt; are variables that let me garb the Year to date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The figures displayed in the chart are not what the users are after, instead of having a sum for the month, they want a sum for the 12 months leading to the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example the value for: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apr-2013&lt;/STRONG&gt; will be a sum of &lt;EM&gt;May-2012 to Apr-2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;May-2013&lt;/STRONG&gt; will be a sum of &lt;EM&gt;Jun-2012 to May-2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jun-2013&lt;/STRONG&gt; will be a sum of &lt;EM&gt;Jul-2012 to Jun-2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well as the sum, they also want the average, which should be easy as it will always divide by 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is how a rolling 12 month average works, so i'm hoping someone has achieved this in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the table to be displayed as above with the same dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this possible with set analysis, if so, how?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580471#M215657</guid>
      <dc:creator />
      <dc:date>2014-04-15T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580472#M215658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this..&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 13:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580472#M215658</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-15T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580473#M215659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/109931"&gt;manishkachhia&lt;/A&gt; I have already seen this and used it to achieve an accumulation of the value over 12 months, so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan = Jan&lt;/P&gt;&lt;P&gt;Feb = Jan+Feb&lt;/P&gt;&lt;P&gt;Mar = Jan+Feb+Mar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The article was good for this, however my challenge I believe is slightly different in that against a month (eg. Apr-2013) I want to go and get the sum for the 12 months previous&amp;nbsp; (eg. May-2012 to Apr-2013) and put this sum against the month of Apr-2013.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580473#M215659</guid>
      <dc:creator />
      <dc:date>2014-04-15T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580474#M215660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use MonthYear instead of Month used in that post.&lt;/P&gt;&lt;P&gt;Otherwise, upload your sample file...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580474#M215660</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-15T13:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580475#M215661</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;I assume you want to see the monthly (in column 1) as well as the cumulative, and the average:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumulative:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =RangeSum(Column(1), 0, RowNo())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Average:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =RangeSum(Column(1), 0, RowNo()) / RowNo()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580475#M215661</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-15T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580476#M215662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, I dont believe this will work as how would I maintain my original set of dimensions and then for each dimension (month) go back 12 months to do the sum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 14:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Average/m-p/580476#M215662</guid>
      <dc:creator />
      <dc:date>2014-04-15T14:07:56Z</dc:date>
    </item>
  </channel>
</rss>

