Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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.