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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
srihitha
Contributor III
Contributor III

NULLInterpret

Why is NullCount(OrderNumber) showing 0 even after using Set NullInterpret ='NULL';

NullCount(OrderNumber)  =1 is what I  am looking for in result 

Script:

NullAsValue *;
Temp:

LOAD * inline [

Customer|Product|OrderNumber|UnitSales|UnitPrice

Astrida|AA|1|4|16

Astrida|AA|A|13|15

Canutility|CC|-||19

Divadip|CC|'NULL'|4|16

] (delimiter is '|');

Set NullInterpret ='NULL';

Count1:

LOAD Count(OrderNumber),NullCount(OrderNumber)
Resident Temp;

 

 

Labels (3)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

remove NullAsValue *;

 

 

Set NullInterpret ='NULL';


Temp:
LOAD * inline [
Customer|Product|OrderNumber|UnitSales|UnitPrice
Astrida|AA|1|4|16
Astrida|AA|A|13|15
Canutility|CC|-||19
Divadip|CC|NULL|4|16
] (delimiter is '|');



Count1:
LOAD Count(OrderNumber),NullCount(OrderNumber)
Resident Temp;

 

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

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

remove NullAsValue *;

 

 

Set NullInterpret ='NULL';


Temp:
LOAD * inline [
Customer|Product|OrderNumber|UnitSales|UnitPrice
Astrida|AA|1|4|16
Astrida|AA|A|13|15
Canutility|CC|-||19
Divadip|CC|NULL|4|16
] (delimiter is '|');



Count1:
LOAD Count(OrderNumber),NullCount(OrderNumber)
Resident Temp;

 

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