Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show chart based on value of a variable

Hi QlikViewers,

I am having difficulties with the conditional display of charts.

What I am trying to do is:

- I have five charts that should never be shown at the same time.

- I have a variable (vShow).

- I have five buttons that assign values 0,1,2,3 or 4 to the variable.

What is not working:

- The statement that hides Chart A if the value is not equal to 0 (resp. hide Chart B if its not equal to 1, Chart C uneqal to 2 and so on...).

Any help is appreciated.

Thanks,

Lina

6 Replies
amit_saini
Master III
Master III

Lina,

Hope this will help you.

Thanks,

AS

simenkg
Specialist
Specialist

The condtional show condition will simply be:

ChartA:

vShow = 0

ChartB:

vShow = 1

and so on...

PrashantSangle

Hi,

What condition you are trying to implement?

Try like this,

In LAyout->show-> Conditional

Expression -> if(vShow=1,1,0)          for chart1

if(vShow=2,1,0)          for chart1

if(vShow=3,1,0)          for chart1

In your Button

add action->Action->External->set Variable

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

It seems to be so simple, but it´s not working for me.

I tried '=vShow = 0' in the Layout > Show > Conditional field. But all it does is disappear. Even if vShow actually is 0.

amit_saini
Master III
Master III

Please share your application.

Thanks,

AS

Not applicable
Author

Hey guys,

thanks for your help.

Turned out that my buttons weren´t properly assigning the values. I don´t really know why, but by deleting the action and recreating it, I could solve the problem.

Cheers,
Lina