Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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.