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: 
bhavvibudagam
Creator II
Creator II

Null Count

Hi Experts,

I am trying to calculate the Null values present in Value field. Here the nullcount under Value is 17.

Please provide the solution to calculate the Nullcount under value field apart from below two methods.

=Count( IF(ISNULL(Value) OR LEN(trim(Value))=0 OR Value=0,1))

=NullCount(Value)

  

IDValue
1-1301
2
3
47
5
663
7
877
9
10
11
12
13
14
15
1671
17
18
19
2032
21
2245
23
2438
25
2641

Thanks in advance

14 Replies
vishsaggi
Champion III
Champion III

May use a NullAsValue and count on that Field. Like

NULLASVALUE Value;

SET NullValue = '<NoData>';

YourLoadStatement. Like

LOAD ID, Value

FROM yoursource;

Then use like

= Count({< Value = {'<NoData>'} >} ID )

zebhashmi
Specialist
Specialist

ITHINK

Count(aggr({<Value={0}>}ID))

bhavvibudagam
Creator II
Creator II
Author

Hi,

The expression is showing error.

Thanks,

devarasu07
Master II
Master II

Hi,

is there any issue using below set analysis method to calculate null count? would be able to share the expected output.

=Count({<ID = {"=Len(trim(Value))=0"}>} Value)

Capture.JPG

bhavvibudagam
Creator II
Creator II
Author

=Count({<ID = {"=Len(trim(Value))=0"}>} ID) Its working when we use Value then getting 0 as output.

I got the expected output. I am looking for different Methods for NullCount calculation.

Thanks every one for providing all the Different Approaches for the Null Count Calculation.