Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cjett7769
Contributor II
Contributor II

If statement in chart expression

I and looking to create a if statement in a chart expressio. For example

if status = 1 then given

if status =2 then refused.

I Am trying to find a way to make this all one statement.

1 Solution

Accepted Solutions
sunny_talwar

This should be enough

Pick(status, 'Given', 'Refused')

Because match will also assign 1, 2 value to status which is its value already

View solution in original post

3 Replies
vishsaggi
Champion III
Champion III

May be this?

= Pick(Match(status, 1, 2), 'Given', 'Refused')

sunny_talwar

This should be enough

Pick(status, 'Given', 'Refused')

Because match will also assign 1, 2 value to status which is its value already

vishsaggi
Champion III
Champion III

Yeah, you are right. Got it.