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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight table won't calculate sum

I have a report which won't produce the sums at top of the table. Previously, I had a lot of null values, so I went through my SQL script, and used

the coalesce function to turn most of them into zeros. However, some still came through. I used an "IF" statement to convert nulls to zeros, but

they came out as text, not numbers (I checked by exporting into Excel). So now my expressions look like this:

=num(if(isnull(EquipmentCreated),0,EquipmentCreated))

It still won't sum in my straight table, although if I export to Excel, it does work.

Why won't QV do this??

I have attached a couple of files.

Thanks!

1 Solution

Accepted Solutions
MayilVahanan

Hi

Please see the attached image.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Please see the attached image.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

It is because of the equation; it shows 'NULL', but you have set it to show '0' instead.  You can use Chart Properties > Expressions > Sum of Rows:

Capture.JPG