Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Expression not working with if condition using not in ?

Please help me with the below expression

 

=If(ED_VISIT_TYPE_CD -= {'12','13'} and ED_SEPARATION_MODE_CD -= {'99'},1,0)

Labels (1)
1 Reply
sidhiq91
Specialist II
Specialist II

@ashmitp869  You are using the Set analysis syntax in the If statement. You can write it as below as

if( not match (ED_VISIT_TYPE_CD,'12','13')  and not match(ED_SEPARATION_MODE_CD ,'99'),'1','0') as New_Column

This should resolve your issue.