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

empty cell and null values

Hi Expertise ,

I have to bucket certain values of the field Environment which has the entry as 'null' and also there as some empty cells with no entries  to which i have to include both 'null ' and blank entries into Unknown . to do so i am trying to use belwo script but this is not working . Can you pease help me on this ? but this below expression gives me reloading error like wrong expression 

Script:

if(WildMatch(ENVIRONMENT,'Green','Green  '),'Green',
if(WildMatch(ENVIRONMENT,'Check','Harvesting'),'UnderDev',
if(WildMatch(ENVIRONMENT,'Better'),'Better',
if(WildMatch(ENVIRONMENT,'null'or
IsNull(ENVIRONMENT),'UNKNOWN',
))))) as environment

 

Thanks in advance 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

@smilingjohn try this

If(WildMatch(ENVIRONMENT, 'Green*',), 'Green',
If(WildMatch(ENVIRONMENT, 'Check', 'Harvesting'), 'UnderDev',
If(WildMatch(ENVIRONMENT, 'Better'), 'Better',
If(WildMatch(ENVIRONMENT,'null') or IsNull(ENVIRONMENT), 'UNKNOWN')))) as environment

View solution in original post

2 Replies
smilingjohn
Specialist
Specialist
Author

HI Expertise,

Any solution on my issue 

 

sunny_talwar
MVP
MVP

@smilingjohn try this

If(WildMatch(ENVIRONMENT, 'Green*',), 'Green',
If(WildMatch(ENVIRONMENT, 'Check', 'Harvesting'), 'UnderDev',
If(WildMatch(ENVIRONMENT, 'Better'), 'Better',
If(WildMatch(ENVIRONMENT,'null') or IsNull(ENVIRONMENT), 'UNKNOWN')))) as environment