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: 
sona_sa
Creator II
Creator II

Actual vs Actual

Hi,

I have three years actual data. I want actual vs actual on the behalf of this expression - (Sum(Current Year Actual Value) - Sum(Previous Year Actual Value)) / Sum(Previous Year Actual Value).

But I am getting only one year. i.e - 2013. In this Case - It should be 2014 and 2013.

For 2014 - Negative (-74.73) and For 2013 = +34.53.

Please find the attached qvw for the same.

Thanks.

3 Replies
simenkg
Specialist
Specialist

Hi, Akumar.

In QlikView you cannot specify the year in Set analysis if you are using Year as dimension in your Chart.

Your expression works if you just want to see the change for one year, simply remove the Year Dimension.

If you wish to show the change over time you can use an expression like this, with Year as Dimension:

(sum(CTS)-above(sum(CTS)))/Above(Sum(CTS))

Hope this helps.

Regards
SKG

MK_QSL
MVP
MVP

You are getting only one year data because your max(year) is only calculated once in set analysis.

sona_sa
Creator II
Creator II
Author

Thanks for reply. This is working, But whenever I am selecting the Year, The chart is not displaying any value. Also for month, Jan month is not coming.

Thanks.