Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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?

1 Solution

Accepted Solutions
MVP
MVP

Re: Set Variable with GetFieldSelections

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

2 Replies
MVP
MVP

Re: Set Variable with GetFieldSelections

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

Not applicable

Re: Set Variable with GetFieldSelections

Thanks very much, knew it was a syntax problem!

Community Browser