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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Counting NULL values

Hi all,

I am looking to count LOCATION = London where L_ID is Null

LOCATION                                         L_ID

London                                                 -

North London                                      1214

London                                               2485

London                                                 -

London                                               4789   

NW London                                           -

The expression I had written doesnt seem to work:

 

Count(IF(LEN(L_ID < 0) , LOCATION = 'LONDON')) 

Thanks.

Koushik.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

try:

count({<Location={'London'},L_ID-={'*'}>} Location)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

try this

Count(IF(isnull(L_ID) , LOCATION = 'LONDON')) 

Not applicable
Author

Nope, doesnt work.

In the above table if you see the null values are 3 therfore the Loctaion = 'LONDON' cannot exceed 3 but I get more than 3 values.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

try:

count({<Location={'London'},L_ID-={'*'}>} Location)


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks Gysbert Wassennar