Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
retko1985
Creator II
Creator II

Show condition on 2 objects, or IF statement (for better performance)

Hello,

I am using 2 buttons to change the calculated expression on the bar chart. I have used one bar chart and change expression based on what button was clicked (having variable).

if (vButton = 1, expression1, expression2)

I was just wondering, isn't it better from performance standpoint (not maintenance) to make 2 bar charts and use show condition with this:

on first bar chart:            if(vButton) = 1

on second bar chart:      if(vButton) = 2

Thank you.

3 Replies
its_anandrjs

Yesh right you can do this way  also can you share some samples to have a look.

maxgro
MVP
MVP

you can use 2 expressions in the bar chart and enable one at a time

with a condition on the variable vButton

1.png

its_anandrjs

Have a look on the attached sample may be something this way you can implement in your QV application.

I demonstrate both with variable or with same variable change in single chart both are best in his places where you uses it only depends on the requirement that you have on the base of that you can implement.