Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I want to represent Last 16 Month Rolling Growth%.
I have Sales of Products for 3 Years.
Growth will be calculated as
for Eg. Oct 2013 Growth= (Oct 2013 Sales - Oct 2012 Sales)/Oct 2012 Sales.
I have to use Month Year as Dimension.
Thanks and Regards
Assuming that you have YearMonth as dimension and that YearMonth is a date serial number (which it is in your Excel sheet), then you can calculate this month's number as
Sum(Sales)
and the number for the month 12 months ago as
Sum(Aggr(Rangesum(Above(Sum(Sales),12,1)),YearMonth))
So your expression becomes
Sum(Sales)/Sum(Aggr(Rangesum(Above(Sum(Sales),12,1)),YearMonth)) - 1
You need to make sure that your YearMonths are loaded in chronological order though, since the Aggr() function internally sorts according to load order.
You cannot use the $-expansion with a formula, since it is not sensitive for the dimensional scope.
HIC
You can follow below Link . Henric Post
http://community.qlik.com/blogs/qlikviewdesignblog/2013/06/10/relative-calendar-fields
Sum( {$<Date={">=$(=MonthStart(AddMonths(Max(Date),-16)))<$(=MonthEnd(Max(Date)))"}>} Sales)
hi,
Rolling 12 months=(sum({<CalendarDate={"$(=Date(Max(CalendarDate)))"}>} Sales)
-sum({<CalendarDate={"$(=Date(AddMonths(max(CalendarDate),-12)))"}>}Sales))
/sum({<CalendarDate={"$(=Date(AddMonths(max(CalendarDate),-12)))"}>}Sales)
try this set analysis.
but if i will use Month Year(eg. oct 2013) as Dimension i will not get the desired Result.
but if i will use Month Year(eg. oct 2013) as Dimension i will not get the desired Result and i want to calculate sales growth which is a calculated expression.
Hi Himank,
Please follow below link Calculating rolling n-period totals, averages or other aggregations its Realy Good
You may get solution
Use makedate function in the set analysis. that is make date from Oct 2013
Dear Sunil
I have gone through it and i understand that i can calculate rolling months Sales but i want to know how can i calculate Rolling Months Growth% with Dimension as Month Year
Hi,
if possible can you upload sample data with desired result
Hi
I have attached an Excel where i have specified Input and what output i want in a straight table or bar chart.
Thanks and Regards