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: 
onetwothree123
Partner - Contributor III
Partner - Contributor III

Hide/Unhide Charts based on selections in a List box ?

How to Hide/Unhide Charts based on selections in a List box ?

I have a requirement where chart A should be displayed if I have A as a  selection in List box. or

chart B should be displayed if I have B as a  selection in List box.

What would be the best way to do it.

1 Solution

Accepted Solutions
Not applicable

Set the list box to always 1 value selected.

Then in each chart use the expression on Show Conditional under the layout tab:

GetFieldSelections(Selection)='A'

//This displays the chart if A is selected.

GetFieldSelections(Selection)='B'

//This displays the chart if B is selected.

View solution in original post

4 Replies
Not applicable

Set the list box to always 1 value selected.

Then in each chart use the expression on Show Conditional under the layout tab:

GetFieldSelections(Selection)='A'

//This displays the chart if A is selected.

GetFieldSelections(Selection)='B'

//This displays the chart if B is selected.

Not applicable

AJ, I believe this should work.

In chart A, properties, layout, show, conditional, type in      yourfieldname='A'

In Chart B, properties, layout, show, conditional, type in      yourfieldname='B'

The when you select either A or B the appropriate Chart will display.

Scott

onetwothree123
Partner - Contributor III
Partner - Contributor III
Author

Thank you Marc and Scott.

It worked

Not applicable

You are welcome.  Please remember to mark your post with "Correct Answer"