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: 
sabrina87
Contributor
Contributor

Count Blank fields in an expression

Hi all,

 

I am trying to count in an expresion when it meets 2 conditions but it is not working, could you help me?

It should count when the field compliant is No and Label is blank

count({<[compliant]={'No'},'LEN(TRIM(LABEL))=0'>} [compliant])

 

Thanks in advance!

1 Solution

Accepted Solutions
edwin
Master II
Master II

try 

count({<[compliant]={'No'},LABEL={"*"}-{''}>} [compliant])

View solution in original post

4 Replies
edwin
Master II
Master II

try 

count({<[compliant]={'No'},LABEL={"*"}-{''}>} [compliant])
edwin
Master II
Master II

{"*"} means NONE NULL values
-{''} means exclude blanks

edwin
Master II
Master II

i read it the other way, if you are looking for just blanks (NOT NULL - there's a difference)

count({<[compliant]={'No'},LABEL={''}>} [compliant])
edwin
Master II
Master II

if you are looking for NULL:

{<complaint={'No'}>-<complaint={'No'}, LABEL={"*"}>}

 

get everything with complaint=No less those with a Label