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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Variable with GetFieldSelections

Hi all,

I'm trying to set the value of a variable to either 1 or 0 based on an if statement, but I can't get it to work...

=IF(GetFieldSelections(Field1 = 'String1'),1,0)

I'm using a Text Object to toggle select the value I want from the field above, and it is changing my active selection without any issue, but the variable remains at 0.

Can anyone help me out with this please?

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=IF(GetFieldSelections(Field1) = 'String1',1,0)

View solution in original post

2 Replies
MK_QSL
MVP
MVP

=IF(GetFieldSelections(Field1) = 'String1',1,0)

Not applicable
Author

Thanks very much, knew it was a syntax problem!