cancel
Showing results for 
Search instead for 
Did you mean: 
OleksandrB
Sisense Team Member
Sisense Team Member

How to Calculate Absolute Sum

We have a table with data and we are going to calculate the absolute SUM for [sum] column.

Screenshot_25.png

 
We divide this into two parts. First of all, we SUM all positive values with the formula

 

 

 

([Total sum],[sum1])

 

 

 

 The first argument is a SUM and second is a filter

Screenshot_29.png


With the help of it, we select all positive values.

The second part of the formula will be 

 

 

ABS(([Total sum],[sum1]))

 

 


The first argument is the SUM of the values, the second filter of all negative values

Screenshot_28.png


And all this calculation wraps with the function ABS (you can read more here).

The whole formula will have a look:

 

 

([Total sum],[sum])+ABS(([Total sum],[sum1]))

 

 


And the final result of it will be 5

Screenshot_30.png

 


Check out this related content:

Academy course

Sisense Documentation

 

Rate this article:
Version history
Last update:
‎08-20-2024 01:38 PM
Updated by: