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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Rakan
Contributor II
Contributor II

Show/Hide Container doesn't work when I add more than one conditional visualization

Hello,

 

I am trying to put 3 containers (sales volume, group margin, wastage) in on Show/Hide container, I have set a variable vShowTable to change value depending on what button is clicked.

 

And it works fine with one conditional visualization, however when I add more the Show/Hide container gets stuck to only showing the default visualization. 

 

Can you please help me with that

Labels (4)
1 Reply
Chanty4u
MVP
MVP

Hi try below steps

you could set up the following variables:

  • vShowSalesVolumeTable
  • vShowGroupMarginTable
  • vShowWastageTable

Then, you could create three separate Show/Hide containers, one for each visualization, and set the conditional expression for each container to use the appropriate variable.

fr ex:

$(vShowSalesVolumeTable) = '1'

 

Similarly, the conditional expressions for the Group Margin and Wastage containers would use the appropriate variables.

By separating the visualizations into separate containers and using separate variables, you can avoid conflicts and ensure that each visualization is shown or hidden independently based on the button clicked.