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: 
pranaview
Creator III
Creator III

How to execute an expression based on a specific value in a dimension

Hi Guys,

Problem :  I want to perform two different expressions in a chart based on what user selects in a different field.

So, i thought maybe I can use GetCurrentField() function but it did not work. 

=If(GetCurrentField(Status) = 'Not Met' , Expression 1,Expression 2)

Please let me know if there's any way I can achieve this.

Thanks!

Pranav

 

Labels (3)
4 Replies
JandreK
Contributor II
Contributor II

Hi 

Try GetFieldSelections(Status)

Regards

anushree1
Specialist II
Specialist II

Please use GetFieldSelections instead of getcurrentfield in your if condition

pranaview
Creator III
Creator III
Author

Worked!! Thanks!!
pranaview
Creator III
Creator III
Author

Thanks Anushree!! It worked.