Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

percentage change over year/month

Hi there,

I have created a pivot table sheet object.

How can i add an expression for Sales to show the % change for year-on-year?

As in below:

  

Month20142015% Chng
167,70272,1707%
257,05762,89510%
378,58776,086-3%
478,79578,4630%
577,62279,5522%
671,80176,1786%
777,97871,959-8%
876,73470,606-8%
975,03974,484-1%
1082,97581,524-2%
1178,67578,233-1%
1218,04217,889-1%
19 Replies
Anonymous
Not applicable
Author

Good...

Once you create Year based on Date field, it would be interger only...

How you have created Year??

sunny_talwar

Remove the check from the check box for  'Show in Percent (%)'

Anonymous
Not applicable
Author

Ohh..Again misunderstood... he was asking for data in column of 2014 & 2015

Not applicable
Author

‌hi all,

if I remove the  check box for show in percentage then the %Chng will not show in percentage. Show as 0

sunny_talwar

Use expression default formatting and then use the following expression:

=If(SecondaryDimensionality() = 0, Num(Sum({<Year = {'$(=Max(Year))'}>} Data)/Sum({<Year = {'$(=Max(Year) - 1)'}>} Data) - 1, '0%'), Num(Sum(Data), '#,##0.0'))

Not applicable
Author

Thanks all, solved the problem!

sunny_talwar

Awesome

Not applicable
Author

Sunny,

Can you please demonstrate how you take that one step further and show the Aggregating Year over Year percentage change by month?  As opposed to the incremental monthly percent change per the examples.

I need to show the cumulative percentage change YoY, by month, so that period 12 would be the same as the Total.

Thanks in advance

saachu21
Contributor
Contributor

Simple Solution, I hope you all like it. Suggestion always welcome.

In expression tab, add this expression to get the column as per your expectation.

=Round(Num((Sum([2015]) - Sum([2014]))/ (Sum([2014]))*100, '#.##'))&'%'

 

 

 

vj_analysis
Contributor
Contributor

How secondary dimensional is working in this expression  could you please explain