Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month to Month growth

Hello community,

I have a pivot table in below format and I want to calculate the % growth based on this month vs previous month.

Any one has a clue how to achieve this in Qlikview in the required pivot table format?

MonthFinYear20052006200720082009201020112012
Apr03,5874,0544,6692,0136,3575,7996,568
May05,2784,8174,6104,5157,0146,7597,670
Jun03,9913,5234,0444,9527,0468,1096,819
Jul03,7393,3314,2044,3326,2806,8755,994
Aug3,0674,3474,3525,4394,2747,4096,9006,561
Sep3,3223,6454,5456,6994,8235,7985,9217,329
Oct4,0074,6434,6465,8885,5356,3946,6166,800
Nov5,4324,7796,6234,5478,0737,1478,2237,553
Dec6,8127,8918,3127,1367,53610,3649,53911,916
Jan5,5456,1565,2036,7086,6147,2838,4579,171
Feb4,0294,9493,9053,7405,6465,5485,2981,559
Mar3,5624,5975,6454,9734,8756,2305,5240

Thanks & Regards,

Sandip Patel

5 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

Hi,

Check out the functions before and above.

Not applicable
Author

Hi,

Thanks for your reply and time, appreciate it.

I have tried above function and it works fine expect the first month of the year.

i.e.

to calculate growth % for the Arpil 2006 I need to get the value of March 2005 which I can not get with the Above function.

jvitantonio
Luminary Alumni
Luminary Alumni

If you read the help, it says that the first row of the table will be null as there are no value to compare.

If the table is fixed, then I recommend you assign that March value to a variable and then use IF with the Above function

something like

If(month = 'Apr' and Year = '2006', Sum(Value)/$(variable), (Sum(Value)-Above(Sum(Value))/Above(Sum(Value));

Not applicable
Author

Thanks.

I will try this.

Is there any other way to achieve this with Set Analysis?

jvitantonio
Luminary Alumni
Luminary Alumni

I don't think so for this case...