Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Flag both null and certain values

Hi,

I have customers with addresses: some of them have a countrycode, while some of them have "null" countrycode. I want to find, (with an  action-button, Select in Field) the customers, that have vaules 6 or 7 or null. Should I flag them in the script? How can I flag both null-values and certain values?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

A flag in the script could look like

CountryTable:

LOAD

     Country,

     CountryCode,

     If(len(trim(CountryCode))=0 or match(CountryCode ,6,7),1,0) as CountryCodeFlag,

     ...

FROM ...;

View solution in original post

2 Replies
swuehl
MVP
MVP

A flag in the script could look like

CountryTable:

LOAD

     Country,

     CountryCode,

     If(len(trim(CountryCode))=0 or match(CountryCode ,6,7),1,0) as CountryCodeFlag,

     ...

FROM ...;

Anonymous
Not applicable
Author

Thank you for your help!