Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To hide a expression based on some condition

Hi all

I have a list box

ComparisonType

Month

Quarter

Year



I also have a line chart, contains 3 expression

I want that when Year is selected in ComparisonType( list box) then 3rd expression should be disable(hide) from my chart ( there should be only 2 expression shown in chart now)

Can this be done

Any answer would be helpful for me

Thanking you

Regards

Deepak Bajaj

1 Reply
boorgura
Specialist
Specialist

hey Deepak,

you can place a condition on the 3rd expression as:

if(getFieldSelections(ComparisionType = 'Year', 0, <your_expression>)

in a line chart, when the value is zero, you would not see anything.
So, that should solve your problem.

Let me know if it works.