Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aspiring_Developer
Creator III
Creator III

Conditional view of charts of button toggle Qliksense

Hello All,

I have below buttons and visuals :-

Aspiring_Developer_0-1649921893952.pngAspiring_Developer_1-1649921963631.png

I have created two variables vhide and vshow

In button named table , I have the values as vHide=1 and vshow =0

In button named Trend chart, I have the values as vHide=0 and vshow =1

I ma unable to pass this  condition in my chart , I have a pivot table and a bar chart and I want when I click on Table button it should show my pivot table and when I click on Trend Chart it should show my Bar chart. In Qlikview we can manage it in the layout section but in Qliksense I am not sure how to achieve this?

Please help.

Thanks in advance/.

Labels (2)
1 Reply
brunobertels
Master
Master

Hello 

both object are independant , So to achieve your requierment you have to use the container object  

 

1 create 2 variable in the variable panel menu like this 

 

brunobertels_1-1649929870762.png

 

set 1 as default value hor Hide and 0 for Show

then add your buttons like that ( here my example is with a bar chart and a line chart) 

BAR CHART Button : 

brunobertels_2-1649929988987.png

 

Line chart button : 

brunobertels_3-1649930049437.png

 

add your bar chart and pivot table chart in the container object 

 

 

brunobertels_0-1649927356316.png

 

 

then for each graph in the panel menu :

 

add vShow and vHide as "show as condition" like this 

brunobertels_4-1649930155397.png

 

bar chart button : 

brunobertels_5-1649930200834.png

 

 

line chart button : 

brunobertels_6-1649930232815.png

 

 

hop it helps