Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem in Set Analysis

Hello,

I am making a group using the item code but not able to get it.

===> If((WildMatch(Itemcode,'11*'))  and(WildMatch(ItemCode,'90*')), 'Retail',

       If((WildMatch(Itemcode,'13*')) and (WildMatch(Itemcode,'95*')),'Drinks'))  AS  GROUP1

I am trying the above code and it is not working.Please Help me out.

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

If(WildMatch(Itemcode,'11*', '90*'), 'Retail',

       If(WildMatch(Itemcode,'13*', '95*'),'Drinks'))  AS  GROUP1

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

5 Replies
senpradip007
Specialist III
Specialist III

Try like

If(WildMatch(Itemcode,'6*', '9*'), 'Retail',

       If(WildMatch(Itemcode,'3*', '5*'),'Drinks'))  AS  GROUP1,

Not applicable
Author

Try using the following code:

If((WildMatch(Itemcode,'11*'))  or (WildMatch(ItemCode,'90*')), 'Retail',

       If((WildMatch(Itemcode,'13*')) or (WildMatch(Itemcode,'95*')),'Drinks'))  AS  GROUP1

MayilVahanan

Hi

Try like this

If(WildMatch(Itemcode,'11*', '90*'), 'Retail',

       If(WildMatch(Itemcode,'13*', '95*'),'Drinks'))  AS  GROUP1

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sagarkharpude
Creator III
Creator III

If((WildMatch(Itemcode,'11*')=1)  and(WildMatch(ItemCode,'90*')=1), 'Retail',

       If((WildMatch(Itemcode,'13*')=1) and (WildMatch(Itemcode,'95*')=1),'Drinks'))  AS  GROUP1

Not applicable
Author

It worked it...!!

Thanks A lot