Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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%
1 Solution

Accepted Solutions
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'))

View solution in original post

19 Replies
Anonymous
Not applicable
Author

try like this:

=(sum of sales of 2015 - sum of sales of 2014) / sum of sales of 2014

Anonymous
Not applicable
Author

In QV, you can write expression for Current Year and Previous Year like:

Current Year(2015): =sum({<YearField=, YearField={'$(=max(YearField)'}>} Sales)

Previous Year(2014): =sum({<YearField=, YearField={'$(=max(YearField)-1'}>} Sales)

Not applicable
Author

Hi,

like this in the pic...not working??

!Capture.PNG

Anonymous
Not applicable
Author

My Dear, you just need to write exprssion not full statement...It seems you are novice user...

Please see :

How should i learn basic of qlikview ?

QlikView Training Videos

Anonymous
Not applicable
Author

write this part only in expression:

=sum({<YearField=, YearField={'$(=max(YearField)'}>} Sales)


and replace YearField & Sales with your fields

sunny_talwar

Check this out:

Capture.PNG

Expression:

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

Not applicable
Author

Hi

I cant open your file, Qlikview give me exceed number of max recoveries , need license.

I tried insert the expression but get no % change.

Pls see attached.

Capture.PNG

sunny_talwar

you need to enable partial sum on the presentation tab:

Capture.PNG

Not applicable
Author

Hi

Thanks, i got it.

But how set the 2014 and 2015 as Integer only.

Capture.PNG