Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
subash_scb
Contributor
Contributor

how can i click measures legend and change it in Bar chart

Hi All,

I have 1 bar chat into that I take 2 measures, so when I click on legend it will change in bar chart according to the selection.

for Eg, I take date Dimension & Take 2 measures Sales and Quantity. showing this into the bar chart, so when I click on sales legend it will show only sales value in bar chart & when I click on Quantity Legend then it will show only quantity values in a bar chart so is there any properties to do this stuff? .... 

 

Regards,

Subash

3 Replies
miskinmaz
Creator III
Creator III

You can do this by creating a button and using the variable value of button try the expression like below:

if(var=1,sum(Qty))

subash_scb
Contributor
Contributor
Author

Hey Thank you so much for Your Reply but it doesn't work so can u plz tell me what should I write in my vVal variable & should I mention this Variable name in button condition and my expression like this if(vval=1, sum(qty)). 

StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

 

see file attached. Something like this? In the script you have to set the field, so after reload, the column will not be null