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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
ivandrago
Creator II
Creator II

Help with IF Statement text box

Hi,

I have the attached Document, I want the text box to show the word 'Open and Closed', this will only appear when the Status Open and Closed is selected.

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If you want to stay close to your current idea, you can use

=If(Match(GetFieldSelections( Status),'Closed, Open'),'Open and Closed: ')

to get the text printed if both values are selected, or

=If(Match( Status,'Closed','Open'),'Open or Closed: ')

will print the text if either Open or Closed is selected, but not both.

Hope this helps,

Stefan

View solution in original post

1 Reply
swuehl
MVP
MVP

If you want to stay close to your current idea, you can use

=If(Match(GetFieldSelections( Status),'Closed, Open'),'Open and Closed: ')

to get the text printed if both values are selected, or

=If(Match( Status,'Closed','Open'),'Open or Closed: ')

will print the text if either Open or Closed is selected, but not both.

Hope this helps,

Stefan