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: 
smilingjohn
Specialist
Specialist

Grouped if or else

Hi All, 

Iam trying to created 3 rows in one field by grouping for which i am not getting the proper result . 

Below is my script can you please help on this . 

 

Script :

if(wildmatch(Dept,'AB','BC','AD'),
if(wildmatch(Sector,'Good','AVG'),
if(not wildmatch(Status,'Accepted','Proceed'),'Rejected')
and
if(wildmatch(Dept,'AB','BC','AD'),
if(wildmatch(Sector,'Good','AVG'),
if(wildmatch(Status,'Closed'),'In_Progress')
and
if(wildmatch(Dept,'AB','BC','AD'),
if(wildmatch(Sector,'Good','AVG'),
if(not wildmatch(Status,'Rejected'),'Built')))))) as Grouped,

 

Thanks in Advance

1 Solution

Accepted Solutions
MayilVahanan

Hi @smilingjohn 

Can you try like below

if(wildmatch(Dept,'AB','BC','AD'),
if(wildmatch(Sector,'Good','AVG'),
if(wildmatch(Status,'Closed'), 'In_Progress',
if(not wildmatch(Status,'Accepted','Proceed'),'Rejected',
if(not wildmatch(Status,'Rejected'),'Built')))))as Grouped

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

2 Replies
Taoufiq_Zarra

can you share a sample data and the expected output ? @smilingjohn 

Regards,
Taoufiq ZARRA

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

(you can mark up to 3 "solutions") 😉
MayilVahanan

Hi @smilingjohn 

Can you try like below

if(wildmatch(Dept,'AB','BC','AD'),
if(wildmatch(Sector,'Good','AVG'),
if(wildmatch(Status,'Closed'), 'In_Progress',
if(not wildmatch(Status,'Accepted','Proceed'),'Rejected',
if(not wildmatch(Status,'Rejected'),'Built')))))as Grouped

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