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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
ivandrago
Creator II
Creator II

Switch Charts using one Variable set in Button

Hi,

I have the attached Document, I need help with the formula that is in on the Button, I want it to loop around the three available charts, which are Dimensions, Measures, Filters. I had this work when it was just two charts but unsure how to get this to loop around when I have three charts?

Any Ideas?

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Check attached

=if(vSwitch=1, 2, If(vSwitch=2, 3, 1))

View solution in original post

4 Replies
sunny_talwar

Check attached

=if(vSwitch=1, 2, If(vSwitch=2, 3, 1))

Anil_Babu_Samineni

Correction based on text to Chart Titles. Text object should be this..

=' Show '  &if(vSwitch = 3, 'Filters',if(vSwitch = 1, 'Dimensions',if(vSwitch = 2,'Measures')))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

Thanks Anil!! I didn't even look at that as I was too much engrossed in getting the variable working

ivandrago
Creator II
Creator II
Author

Thanks Anil, actually what Sunny has done is what I want, as I want it to say Show Measures if the current Chart that is open is on Dimensons