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

Sum of Null shows zero value

Hi all,

I'm trying to show a straight table with blank value when no value exists,

I prefer not to add If's to the UI since speed is an issue here.

I have NULL values in the second column (i.e. NumOfApps),

but when I sum it in straight table i get zero !

Can anyone explain:

1. why this is happening?

2. a way around this

17-07-2016 16-52-04.png

Thank You,

Nir Katz

1 Solution

Accepted Solutions
sunny_talwar

A way around this would be something like this;

If(Len(Trim(Avg(NumOfApps))) > 0, Sum(NumOfApps))

Update: I just realized that you did not want wish to add an if statement.... May be give this a try:

Avg(NumOfApps) * Count(NumOfApps)

View solution in original post

2 Replies
sunny_talwar

A way around this would be something like this;

If(Len(Trim(Avg(NumOfApps))) > 0, Sum(NumOfApps))

Update: I just realized that you did not want wish to add an if statement.... May be give this a try:

Avg(NumOfApps) * Count(NumOfApps)

sunny_talwar

Sample attached:

Capture.PNG