Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help with counting nulls

Hi all,

I would like to display the count of null values of Account Number.

What is the expression to calculate that.

1 Solution

Accepted Solutions
nagireddy_qv
Creator II
Creator II

Hi,

This will count both nulls and blanks:

count(if(len(trim([Account NUmber]))=0,[Account Number]))

View solution in original post

4 Replies
sunny_talwar

May be this:

NullCount([Account Number])

Not applicable
Author

NullCount([Account Number])

nagireddy_qv
Creator II
Creator II

Hi,

This will count both nulls and blanks:

count(if(len(trim([Account NUmber]))=0,[Account Number]))

swuehl
MVP
MVP

Nagireddy.qv, I think you need to consider the case when [Account Number] is NULL, then your expression will count NULL which return zero. So you would need to return a value in these cases:

=count(if(len(trim([Account NUmber]))=0,'NULL'))

or

=Sum(if(len(trim([Account NUmber]))=0,1))