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: 
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