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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Wildmatch, Wildmatch5 & LIKE function


I want to tag a list of account with below query:

if(WildMatch([MAKE & MODEL],'*MOTORC*'),'Motorcycle',

if(REASON_CODE='SKIP','Exclusion List',

if([PRODUCT TYPE]='902' or [PRODUCT TYPE]='903','Floor Stocking',

if([PRODUCT TYPE]='900' or [PRODUCT TYPE]='901',Block Discounting',

if([DISBURSEMENT YEAR]=2013 AND RNR='N' AND [CUSTOMER TYPE]='I','MPR_13'

if([CUSTOMER TYPE]='C' or [CUSTOMER TYPE]='N' or [CUSTOMER TYPE]='S','Company,'Others')))))) as CATEGORIES,

Other than 'Motorcycle', was tag accordingly. I've use WildMatch & LIKE but still none of the account was tagged with it.

But if I run only 'Motorcyle' condition without others, system can tagged it accordingly.

Anybody have better idea to solve this query?

6 Replies
tresesco
MVP
MVP

Without a data sample it would be very hard. Please post sample app with a small data.

Not applicable
Author

I have attached the before tag & after tag in the excel file attached.

tresesco
MVP
MVP

PFA

Not applicable
Author

You can use it like this :

if(WildMatch([MAKE & MODEL],'*MOTORC*'),'Motorcycle',

if([REASON CODE]='SKIP','Exclusion List',

if([PRODUCT TYPE]='902' or [PRODUCT TYPE]='903','Floor Stocking',

if([PRODUCT TYPE]='900' or [PRODUCT TYPE]='901','Block Discounting',

if([DISBURSEMENT YEAR]=2013 AND [CUSTOMER TYPE]='I','MPR_13',

if([CUSTOMER TYPE]='C' or [CUSTOMER TYPE]='N' or [CUSTOMER TYPE]='S','Company','Others')
)))))
as  CATEGORIES

Not applicable
Author

Have test it & its successfully tagged.

If the field provided previously were in different table, it was understood that I have join it, can the same query be used? Caused that was the real headache actually.

Not applicable
Author

Thanks for the assistance.