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: 
Anonymous
Not applicable

how to find the difference between measures of two selected bars in barchart?

example:

i want to find difference as

value in rupees in-

1984 = 43.44

1991 = 39.22

difference between them = 43.44 - 39.22 = 4.22

please help

difference example.PNG

16 Replies
OmarBenSalem

alternative measures?

Anonymous
Not applicable
Author

every charts has different states so selection of one chart is not effecting the other charts .. so in such scenario i want to show the difference in two selected points on graph

OmarBenSalem

and that's exactly what the expression does:

Capture.PNG

Anonymous
Not applicable
Author

i understood the expression but i want this baased on different states

eg:

='difference btwn '&max(Year)& ' and '& min(Year)&' ='

& (avg(<STATE1>{<Year={"$(=max(Year))"}>}(Wheat2)) - avg(<STATE1>{<Year={"$(=min(Year))"}>}(Wheat2)))

OmarBenSalem

You're using QlikView or QlikSense?

OmarBenSalem

if it's qlik sense, how are you creating alternate states?

Anonymous
Not applicable
Author

yes it is qlik sense i used extension for that,

GitHub - ChristofSchwarz/QSExtension_SetObjectState: This Qlik Sense Extension allows you to assign ...

here's a link to that extension