Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
s10157754
Creator III
Creator III

Count Null values over multiple fields

Dear Qlikview Experts,

May I know how to count the correct number of rows of null value over multiple fields? For example in the picture below, I want to count the total number of rows if AAA, BBB, CCC and DDD fields contailed Null value, so I shall get 2 in return.

Capture.PNG

Many Thanks for your help in advance!

I had also attached a sample of qvw for your reference.

Best Regards

QianNing

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Try

=count(aggr(if(Rangesum(if(Len(AAA)=0,1),if(Len(BBB)=0,1),if(Len(CCC)=0,1),if(Len(DDD)=0,1))=4,1),MachineNumber,Date,Time))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

Try

=count(aggr(if(Rangesum(if(Len(AAA)=0,1),if(Len(BBB)=0,1),if(Len(CCC)=0,1),if(Len(DDD)=0,1))=4,1),MachineNumber,Date,Time))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
s10157754
Creator III
Creator III
Author

Dear Vineeth,

Thank you so much for the solution, it works like a charm! Appreciated a lot! Have a nice day!

Best Regards

QianNing