Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
prabhas277
Creator
Creator

button

Hi experts,

I have one bar chart and one button.if i click on button then the chart is hide?how to achive this ?

11 Replies
Chanty4u
MVP
MVP

hi

PFA

hope that helps you

Thank you

Suresh

jsingh71
Partner - Specialist
Partner - Specialist

See attachment.

Show.png

prabhas277
Creator
Creator
Author

Hi thanks for sharp reply..

i want expression     how to write the expression?

Chanty4u
MVP
MVP

hi

u can provide the variables usng or else u can give in chart layout tab using conditional

suppose  vshow=1, or 0

u cn give same in button for the both the charts

Thank you

Suresh

Not applicable

You have to create one Variable with initial value 0,

Let Variable =0 in Script.


Add 2 buttons, one with Green color and other with Grey, overlay one on other and put condition show in layout tab of button properties for both of them

Green button condition       if(Variable=1,1,0)

Grey Button condition      if(Variable=0,1,0) .

And for each button, Properties>Actions>External>Set Variable>VariableName>Value

For Grey Button put 1 as Value

For Green Button put 0 as Value

Finally in bar chart , Properties>Layout>condition show>if(Variable=1,1,0)

hariprasadqv
Creator III
Creator III

Hi,

1.Create a variable and use Button action Properties to set variable value.

2.Use Condetional Show in Chart's Layout properties.

Capture.PNGCapture1.PNGCapture2.PNG

Thanks

jsingh71
Partner - Specialist
Partner - Specialist

Follow below steps:

1. Create one variable like vVarS=0

2. Add Button. In button Text write =if(vVarS=1,'Hide','Show')

3.In Button add action

     -Action Type-> External

     -Action -> Set Variable

4.Under Variable Box give variable name vVarS

5.In Value Box give =if(vVarS=0,1,0)

Action.png

6. Go to Chart Properties -> Layout Tab and add following

Layout.png

Click OK

Not applicable

Dude Just create a new Variable by And put the value to that variable as 0.

ansvar1.PNG

Go to layout of ur chart and select conditional option call the variable there.

anslay1.PNG

Create a Button go to action tab click add button and click External option then select variable.

ansbut.PNG

Apply it......

vardhancse
Specialist III
Specialist III

Yes, Using variable we can achieve your requirement.