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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Showing Number of Nulls for Each Field

I would like to create a table that lists every field, which has columns for the total number of nulls, the percentage of rows that have a null, etc. What is the best way to go about this? I have a pivot table that uses $Field as the dimension, but I am unsure how to count the null values in Qlikview.

14 Replies
hectorgarcia
Partner - Creator III
Partner - Creator III

thanks Settu for your contribution with the field observer.

Is it possible to generate the same table but in the script?  to create data qulaity qvd's with this content?

mehul_qlik
Contributor II
Contributor II

Hi settu_periasamy,

 

I am getting 0 as null value count while using above expressions . Can you please help me

mehul_qlik
Contributor II
Contributor II

Hi Sunny,

 

I am getting 0 after using you expression. Can you please help me on this . 

gq
Contributor III
Contributor III

To count the Nulls, either you can use Isnull function or length function.

I usually use Len(Trim(Field)) = 0 to check if the value of the field is null,  Trim is used to make sure it does not count any spaces or blanks.


To count the nulls in the field,  can use if condition in combination with Len Function.

Try below
Sum(distinct IF(Len(Trim(Field)) = 0, 1, 0))

mehul_qlik
Contributor II
Contributor II

Thanks ! I tried but still it giving me 0 as results.