Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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.