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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
analystdude96
Contributor
Contributor

Using an If statement to show different data

I have a dataset that looks like this

 

Name Status  Result

Jeff       Yes           1

Mark    No             0

Tim       Yes           1

Sarah  No             0

 

In the field expression editor of both the Result and Status columns, I have used the following to only display those rows with both a 'Yes' in the Status column and a 1 in the 'Result' column, using these lines of code:

 

=if(Result =1,  Result )

  =if(Status ='Yes', Status)

 

So my app now displays :

Name Status  Result

Jeff       Yes           1

Tim       Yes           1

 

My problem is that I now want the Result column to show 'Accepted' instead of the number 1, as that doesn't make much sense as just an integer so I need text here instead.

 

Any help would be appreciated greatly.

 

Thank you

 

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

=if(Result =1,  'Accepted')

View solution in original post

1 Reply
m_woolf
Master II
Master II

=if(Result =1,  'Accepted')