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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

if condition with AND

Hi Experts,

I want to change the below expression, but it is not working as expected.

From-->  
if(field3 = 'Closed', black(),
   pick(match(Field2,'NY','LD,','JP'),yellow(),Blue(),green()))

To-->
if(field3 = 'Closed' AND if(Field2 = 'NY',black(),
   pick(match(Field2,'LD,','JP'),yellow(),Blue(),green()))

 

Please help.

Labels (1)
1 Solution

Accepted Solutions
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

Try this.

if(field3 = 'Closed' AND Field2 = 'NY',black(),
   pick(match(Field2,'LD,','JP'),yellow(),Blue(),green())

View solution in original post

2 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

Try this.

if(field3 = 'Closed' AND Field2 = 'NY',black(),
   pick(match(Field2,'LD,','JP'),yellow(),Blue(),green())

surajap123
Creator III
Creator III
Author

Thanks for your help