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: 
MuraliPrasath
Creator III
Creator III

Match Function

Hi,

I've a field name "UserLocation".

and data is           Bangalore

                              Chennai

                              Hyderabad

                              '                '      this is null value it contains nothing.

I want to convert, this empty value into "Not-defined" value.

I've tried the following one 

pick(wildMatch(UserLocation,'* *','Bangalore','Chennai','Hyderabad'),'Not-defined','Bangalore','Chennai','Hyderabad') as UserLocation

but still I can't see Not-defined data in the UserLocation field.

Need Help on this?

Labels (1)
1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

if(IsNull(UserLocation),'Not-defined',UserLocation) as UserLocation

hth

Sasi

View solution in original post

2 Replies
Kushal_Chawda
MVP
MVP

try this

LOAD *,

if(len(trim(UserLocation))=0,'Not-Defined',UserLocation) as UserLocationNew,

.....

sasiparupudi1
Master III
Master III

if(IsNull(UserLocation),'Not-defined',UserLocation) as UserLocation

hth

Sasi