Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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.