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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Script

Hi All, 

I am trying to create a group by bucketing certain condition from 3  fields  in the script , this reloads but dont show any output . My script is as below . Can someone please help me achiving this ?

 

 

 

Thanks in Advance.

 

10 Replies
avinashelite

Try like this 

If(match(Dept,'A','X','Y','Z') , if(Match(Status,'Passed','Success','Processed'),'Scanned',
if(Match(Status,'Failed'),'Rejected','Total'))) as Category ,

smilingjohn
Specialist
Specialist
Author

Hi Avinash this is not working 

smilingjohn
Specialist
Specialist
Author

Hi ALl, 

This is my below script which i am trying to group  this script reload but it dont show in output . is there way to habdle this witout making concatenation ?

 

 

 

smilingjohn
Specialist
Specialist
Author

Hi Community any help on my post?

QFabian
MVP
MVP

hi, in this particular case,  try with nested if, instead of separated if as i can see.

 

QFabian
smilingjohn
Specialist
Specialist
Author

Thanks for the reply @QFabian ,

Can you please provide me the example how do i use nested if in this perticular issue ?

 

Thanks 

QFabian
MVP
MVP

did you check the atached image in my previous reply?

Basically, as i can see, you do an if, then another, but you should do as follow :

if( A=1, action1, if (A=2, action2, if(....... and so on.

QFabian
smilingjohn
Specialist
Specialist
Author

I saw you image but i dont understand what are you trying to say .

Thanks 

QFabian
MVP
MVP

Checking again, you already have nested if, so, i think you should probably create each wilmatch statement as a separate field, just for seeing if the values are ok for the total ifs workflow validations.

 

example :

 

QFabian