Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display the null values for a column

Dear QVExperts,

I have a table with column, [Date Received] with total 117 rows

Out of which, two rows are null.

How to display the Count([Date Received])

without null as 115 rows

with null as 2 rows.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi Sasi,

Below code will be help ful to you.

check:

LOAD sum(if(isnull(Customer)=0,1,0)) as  notnullvalue,

         sum(if(isnull(Customer)=0,0,1)) as  nullvalue

FROM

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

thanks,

Sreeman

View solution in original post

6 Replies
sunny_talwar

You can do a count of Null using NullCount() function:

NullCount([Date Received])

Kushal_Chawda

without Null= count(if(len(trim([Date Recieved]))>0,[Date Recieved]))

Null = count(if(len(trim([Date Recieved]))=0,[Date Recieved]))

Not applicable
Author

Hi Sasi,

Below code will be help ful to you.

check:

LOAD sum(if(isnull(Customer)=0,1,0)) as  notnullvalue,

         sum(if(isnull(Customer)=0,0,1)) as  nullvalue

FROM

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

thanks,

Sreeman

sunny_talwar

Alternative would be to do this:

RangeSum(Count([Date Received]) + NullCount([Date Received]))

HirisH_V7
Master
Master

Hi ,

Check this,

Finding NULL

-Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Thanks All for your valued solutions.