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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

More than one statement to a field

I have the following data ( attached ).

I already have the following statement which says anything that begins with 9 should be assigned a region of unrestricted.

if(WildMatch(Sales_Number ,'9*',Region),'unrestricted',Region) as Region_New


What I now want to do as per the expected output in the spreadsheet is to say any region that begins Lon* should be replaced with London.


Please assist with applying the new logic to current one.

Labels (1)
3 Replies
PrashantSangle
MVP
MVP

Hi,

You need nested if else

try like

if(wildmatch(Sales_Number,'9*'),'UnRestricted',

if(wildmatch(Region,'Lon*'),'London',

Region))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sushil353
Master II
Master II

try this:

if(WildMatch(Sales_Number ,'9*',Region),'unrestricted',Region) or if(wildmatch(Region,'Lon*','London',Region) as Region_New

HTH

Not applicable
Author

This is missing a bracket I believe (?)