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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using a button to toggle between two graphs

Hello very new to Qlikview and have been given a task to make a button to toggle between two graphs.  I have made a variable called vSwitchTable and assigned it to the button. 

I am sure that I have to use the code = if(vSwitchTable = 0,1,0) to get this to work but I am not sure of where to implement it into the two graphs. 

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Found what I was looking for on this thread. 

http://community.qlik.com/message/228385#228385

Thanks for your help Kaushik

View solution in original post

3 Replies
kaushiknsolanki
MVP
MVP

Hi,

     Go to Properties of the chart -> Layout tab ->Condition show.

     Here put expression as

     if(vSwitchTable = 0,1,0) for one chart and for other chart

     if(vSwitchTable = 0,0,1)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

When I assign these conditions to the two graphs, one of them disappears and doesn't come back when I click my button.  Inside my button I have assinged vSwitchTable as 1 and 0.  Is there something wrong with that?

Not applicable
Author

Found what I was looking for on this thread. 

http://community.qlik.com/message/228385#228385

Thanks for your help Kaushik