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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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!