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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
BI_Rockstar_265
Contributor II
Contributor II

How to show NA(null) values in sum expression

Hi,

 

I want to see wherever data is not there in sum expression instead of 0 it should be NA.

 

1 Reply
Or
MVP
MVP

You could use e.g. if(Count(Field)=0,'NA',Sum(Field)). If a field's count is 0 that means there are no non-null values (a field can have sum=0 but still have valid values, e.g. -1 and 1). Note that doing this may cause formatting issues since you're placing a textual value into what would otherwise be a numeric column.