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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
joshakehurst
Partner - Contributor III
Partner - Contributor III

WildMatch and If statement

I'm having a mental block today on WildMatch parameter.  Any suggestions on how to write an expression to EXCLUDE a userID prefix from a data set.  I assume I could use a <> parameter, but can't figure it out. 

Example to include anything 'Test*' but would like to exclude test from the data set. 

if(WildMatch([UserId],'Test*'), [UserId]) 

1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

It's not quite clear for me what do you are meaning with "exclude test from the data set"? Here a variance to your expression which might be more suitable:

if(not WildMatch([UserId],'Test*'), [UserId], null())

- Marcus

View solution in original post

1 Reply
marcus_sommer
MVP
MVP

It's not quite clear for me what do you are meaning with "exclude test from the data set"? Here a variance to your expression which might be more suitable:

if(not WildMatch([UserId],'Test*'), [UserId], null())

- Marcus