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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

If condition issues

This is my condition 

If Purchase Type= “RM\BOP” and Overall Category & MIS Grade Category are blank, then show purchase type else display null.

This is my code but it shows everything as NULL

=if(([Purchase Type]='RM\BOP') and ([Overall Category]=' ') and ([MIS Grade Category]=' '),[Purchase Type],Null())

 

1 Solution

Accepted Solutions
risabhroy_03
Partner - Creator II
Partner - Creator II
Author

I used this and it worked perfectly 

=If(([Purchase Type]='RM\BOP') and ([Overall Category]='-') and ([MIS Grade Category]='-'),[Purchase Type],Null())

 

 

 

View solution in original post

2 Replies
Taoufiq_Zarra

@risabhroy_03  can you try like

if(match([Purchase Type],'RM\BOP')>0 and len(trim([Overall Category]))=0 and len(trim([MIS Grade Category]))=0,[Purchase Type])
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
risabhroy_03
Partner - Creator II
Partner - Creator II
Author

I used this and it worked perfectly 

=If(([Purchase Type]='RM\BOP') and ([Overall Category]='-') and ([MIS Grade Category]='-'),[Purchase Type],Null())