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: 
raivalen
Contributor
Contributor

KPI for % change over two dimensions

Hi.

 

I need to insert on my QlikSense Analytics app a KPI that shows the percentage of change between two years with the below data. How can I show the % of change when I select 2 years as dimension filter? 

 

Screenshot 2024-08-22 at 11.20.55.png

Labels (1)
  • SaaS

1 Reply
Sayed_Mannan
Creator II
Creator II

if you want to select two different year then you can use alternative dimension here.

but if you want to see %change based on selected year vs last year then see the below expression:-

Num(
(Sum({<Year = {"$(=Max(Year))"}>} Sales) - Sum({<Year = {"$(=Max(Year)-1)"}>} Sales)) /
Sum({<Year = {"$(=Max(Year)-1)"}>} Sales),
'#,##0.00%'
)

 

I hope this helps.