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: 
ramyasaiqv
Creator II
Creator II

If condition not working

Hello All,

I’m trying to derive “Open_Date” from “Date “  in the script using the following condition but getting nulls.  Please help me.  Attached sample qvw, excel and expected result set for reference. Thank you,

if(Type= 'BCT' and Status='Accepted'  and Type='ECT' and Status='Open' or '-', Date) as Open_Date

Expected Result:  3/12/2016 (BUS)

8/20/2015 (PTZ)

Ramya

1 Solution

Accepted Solutions
sunny_talwar

How can type be BCT and ECT at the same time... same problem with Status... may be you need or condition?

View solution in original post

4 Replies
sunny_talwar

How can type be BCT and ECT at the same time... same problem with Status... may be you need or condition?

krishnacbe
Partner - Specialist III
Partner - Specialist III

Check the attached file. hope it helps.

Changed the formula as below.

if((Type= 'BCT' or Type='ECT') and (Status='Accepted' or Status='Open'), Date) as Open_Date

ramyasaiqv
Creator II
Creator II
Author

Thank you Sunny.

Ramya

ramyasaiqv
Creator II
Creator II
Author

Thank you for the response Krishnapriya.

Ramya