Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
everest226
Creator III
Creator III

expression

i have a table where i need to add a single  column which will display if student  pass or fail

the field from data model is

NOTE- in single column

  1. Pass Ind: A Y/N 1/0 dual flag that indicates whether the Student pass 
  2. Fail Ind: A Y/N, 1/0 dual flag that indicates whether the student Fail

Any suggestion would be helpful

tamilarasu

stalwar1

-        

1 Solution

Accepted Solutions
rahulpawarb
Specialist III
Specialist III

Hello Everest,

I agree with Oleg; please elaborate your request.

However, I am just passing a guess answer. Use below expression to get the desired results.

if(A='Y' OR A=1, 'Pass','Fail') AS Status

Hope this will help.

Thank you!

Rahul

View solution in original post

6 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You need to explain your problem in a bit more detail, and possibly post a sample app. It's not too clear what is your issue.

rahulpawarb
Specialist III
Specialist III

Hello Everest,

I agree with Oleg; please elaborate your request.

However, I am just passing a guess answer. Use below expression to get the desired results.

if(A='Y' OR A=1, 'Pass','Fail') AS Status

Hope this will help.

Thank you!

Rahul

vinieme12
Champion III
Champion III

Try below

Dual (If (A='Y','Pass','Fail'),If (A='Y',1,0)) as Status

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
tamilarasu
Champion
Champion

Hi Ujjwal,

Sorry for the delayed response. Could you explain your question a bit more or post some sample data and expected output? It would be easy for us to help you quickly.

everest226
Creator III
Creator III
Author

Thanks

if(A='Y' OR A=1, 'Pass','Fail') AS Status


works perfectly

rahulpawarb
Specialist III
Specialist III

Cheers...

Rahul