Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlikuser09
Creator II
Creator II

when clicking KPI button i want KPI chart to be displayed when selecting Chart button i wanted chart to be displayed

Qlikuser201_0-1673139720352.png

 

i created a new variable called vselect 

In the KPI actions i selected "set variable Value'

and assigned value as KPI for KPI button and chart for chart button

i created a container to hold both the charts 

and assigned the respective conditions , but however when i select both the buttons the chart is not displaying (button is still not working )

1 Solution

Accepted Solutions
N30fyte
Creator
Creator

Under Action, Set variable value, the Variable should be vselect, not =vselect

 

View solution in original post

7 Replies
vinieme12
Champion III
Champion III

A container can only display one object at a time

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Qlikuser09
Creator II
Creator II
Author

yes i want only one object to display, when selecting the button, but the container is not displaying any charts

N30fyte
Creator
Creator

Create a variable called vShow. Set its initial value to 0

Set the Show Condition for the Chart in your Container to =vShow=0

Set the Show Condition for the KPI in your Container to = vShow=1

Create a single button (you don't need two).

The button will toggle vShow between 1 and 0.

Under Actions and navigation, set its Action to Set variable value.

Set its Variable to vShow

Set its Value to  =if(vShow=1,0,1)

Under Appearance - General, set its Label to 

=if(vShow = 1,'Show Chart','Show KPI')

Clicking the button will alternately hide and display the two items in the container, and the button text will change to suggest the alternatives.

 

 

 

 

 

ogster1974
Partner - Master II
Partner - Master II

can you screen shot your condition to show.  Also create a text box with =$(vselect)  so we can see whats going on when you click on them both.

You need to validate your expression to true to show the object so perhaps something like =If(Match($(vselect),'KPI'),1,0) for the KPI Container tab.

 

Qlikuser09
Creator II
Creator II
Author

I tried to do that , button the variable is not toggling between 1 and 0 , by default i get 0,

 

1)creating variable called vselect

Qlikuser201_3-1673280922041.png

2)chart results

Qlikuser201_0-1673280771310.png

3)Setting Actions for the buttons

Qlikuser201_4-1673281012076.png

4)setting conditions for the containers

Qlikuser201_5-1673281067208.png

 

 

 

Qlikuser09
Creator II
Creator II
Author

1)creating variable called vselect

Qlikuser201_6-1673281175370.png

 

2)chart results

Qlikuser201_7-1673281175180.png

 

3)Setting Actions for the buttons

Qlikuser201_8-1673281175228.png

 

4)setting conditions for the containers

Qlikuser201_9-1673281175267.png

 

I tried doing this variable input chart as well , but i see the button value is toggling between the values, 

N30fyte
Creator
Creator

Under Action, Set variable value, the Variable should be vselect, not =vselect