<?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 Months chart with current month as other expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330662#M121757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also my issue is that I need it to show for sales: Previous 12 month total for each dimension, even with a date range selected. Accumulate 12 steps works with no selection. However if someone selects Jan 2012 I still need it to sum Feb 2011 to Jan 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need the rolling 12 month average for head count. I can not use accumulate 12 steps back because it summarizes the data instead of averaging it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need something like set analysis that takes into account the current dimension of month ending (MM/DD/YYYY) and then sum/avg 12 steps back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I relized I can just set the chart to an alternate state and read only so that the user always sees all data. This solves the issue of the values being wrong when a month or year is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still having issues with the sum and average of sales and headcount though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Headcount:&lt;/P&gt;&lt;P&gt;RangeSum( Above (count(DISTINCT Employee)),0,12) / 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;RangeSum( Above (sum([Sales&amp;nbsp; Revenue])),0,12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annualized:&lt;/P&gt;&lt;P&gt;(RangeSum( Above (sum([Sales&amp;nbsp; Revenue])),0,12)/(RangeSum( Above (count(DISTINCT Employee)),0,12) / 12))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2012 13:14:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-02T13:14:08Z</dc:date>
    <item>
      <title>Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330657#M121752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum([Invoice Line Amount Rev]) + sum([Misc Amount Rev]))/count(DISTINCT Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to show the revenue per employee. I want to also compare on the same chart the rolling annual 12 month amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched for rolling 12 month examples but I can not seem to get them to work. I am using a calendar table that is linking the data together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Dimension is CalendarMonthandYear displayed as Oct 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should show for example of last month, amount per employee for january, and the amount per employee for Feb 2011- Jan 2011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 21:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330657#M121752</guid>
      <dc:creator />
      <dc:date>2012-02-29T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330658#M121753</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cau u add the sample QV based on requirments . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 05:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330658#M121753</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-03-01T05:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330659#M121754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;hope this help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 10:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330659#M121754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-01T10:19:02Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330660#M121755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression returns a No Data to Display error when only that expression is displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this to calculate for 12 months before every month year displayed on the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the same original expression and marking it as accumulate 12 steps back works, except when you select a year say 2011. If this is selected the only month that shows correctly is December because it does not pull data from 2010 for the previous months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 11:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330660#M121755</guid>
      <dc:creator />
      <dc:date>2012-03-01T11:48:49Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330661#M121756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would i do this down to the day?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 21:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330661#M121756</guid>
      <dc:creator />
      <dc:date>2012-03-01T21:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330662#M121757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also my issue is that I need it to show for sales: Previous 12 month total for each dimension, even with a date range selected. Accumulate 12 steps works with no selection. However if someone selects Jan 2012 I still need it to sum Feb 2011 to Jan 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need the rolling 12 month average for head count. I can not use accumulate 12 steps back because it summarizes the data instead of averaging it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need something like set analysis that takes into account the current dimension of month ending (MM/DD/YYYY) and then sum/avg 12 steps back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I relized I can just set the chart to an alternate state and read only so that the user always sees all data. This solves the issue of the values being wrong when a month or year is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still having issues with the sum and average of sales and headcount though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Headcount:&lt;/P&gt;&lt;P&gt;RangeSum( Above (count(DISTINCT Employee)),0,12) / 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;RangeSum( Above (sum([Sales&amp;nbsp; Revenue])),0,12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annualized:&lt;/P&gt;&lt;P&gt;(RangeSum( Above (sum([Sales&amp;nbsp; Revenue])),0,12)/(RangeSum( Above (count(DISTINCT Employee)),0,12) / 12))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 13:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330662#M121757</guid>
      <dc:creator />
      <dc:date>2012-03-02T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330663#M121758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached my sample app, and then what my client would like to see. I will continue to use your expression to try and test mine, but any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 17:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330663#M121758</guid>
      <dc:creator />
      <dc:date>2012-03-02T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330664#M121759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to work through this, any idea why this calc is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to achieve taking 2010 results and compare it to 2011, but I want the rolling 12 instead of just the whole year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearMonth = {"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -24), 'MMM YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), -12),&amp;nbsp; 'MMM YY'))"} &amp;gt;} Sales)/Sum({&amp;lt;YearMonth = {"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -12), 'MMM YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0),&amp;nbsp; 'MMM YY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer to the expression comes out as 1, and only shows dic 10 for month. Both pieces work fine on their own, but when brought together, I don't get the expected results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 17:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330664#M121759</guid>
      <dc:creator />
      <dc:date>2012-03-02T17:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330665#M121760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex, You might get a quicker response if you post a new discussion. People may not see your question here due to them only seeing the original question and that you posted on it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 18:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330665#M121760</guid>
      <dc:creator />
      <dc:date>2012-03-02T18:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Months chart with current month as other expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330666#M121761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 16:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-chart-with-current-month-as-other-expression/m-p/330666#M121761</guid>
      <dc:creator />
      <dc:date>2012-03-05T16:31:57Z</dc:date>
    </item>
  </channel>
</rss>

