Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ROLLING 16 Months Growth

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

Labels (1)
26 Replies
PrashantSangle

Hi,

Please find attchment

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

if you have straight table then use..

RangeSum(sum(Sales),-above(sum(Sales)))/above(sum(Sales))

Growth Calculation.png


Not applicable
Author

Vinay this way i will able to calculate growth with respect to Last month.

But my requirement is not that.

Thanks

hic
Former Employee
Former Employee

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

Not applicable
Author

Thanks alot Henric.

It works like charm.

I know only you can solve this problem.

You are a Champ.

Not applicable
Author

It works fine when i have  not selected anything.

At the moment  I want to see growth of a Particular Month this will not work.

Any Solution for that?

hic
Former Employee
Former Employee

You're right. A selection will disable the summation inside the Aggr. So you need to remove that selection by using Set Analysis inside the Aggr(). I believe the following will work:

Sum(Sales) / Sum(Aggr(Rangesum(Above( Sum({$<YearMonth=>} Sales),12,1)), YearMonth)) -1

HIC