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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Cherry08
Contributor III
Contributor III

How to use Not WildMatch function that should include Null values

Hi All,

I am trying to write a query that needs to eliminate couple of values(ID's) from a field(EmployeeID) so I am using Not WildMatch function as below 

Where Not WildMatch (EmployeeID,'22156', '22160','22340', '*23*');

But that function is also eliminating Null values in the EmployeeID field. Could someone help me how we can eliminate those ID's but include Null values?

Thanks

1 Solution

Accepted Solutions
Vegar
MVP
MVP

What about adding a condition for the null values like this

Where (
   isnull(EmployeeID) OR Not WildMatch (EmployeeID,'22156', '22160','22340', '*23*')
   );

 

View solution in original post

4 Replies
Vegar
MVP
MVP

What about adding a condition for the null values like this

Where (
   isnull(EmployeeID) OR Not WildMatch (EmployeeID,'22156', '22160','22340', '*23*')
   );

 

Saravanan_Desingh

Try like this,

Where Not WildMatch (If(IsNull(EmployeeID),'ITSNULL',EmployeeID),'22156', '22160','22340', '*23*');

 

Cherry08
Contributor III
Contributor III
Author

Thank You So much!! This works 😀

Cherry08
Contributor III
Contributor III
Author

Thank You for your response!!