Absolute

Absolute calculations keep the value of a number but ignoring the sign. This is useful in creating normalised scores, e.g. when analysing departure from a target value regardless of direction.

Excel

=~ABS!~(‹cell›)

=ABS(4) // Returns 4

=ABS(A1) // -13.6 -> 13.6

Tableau

~ABS!~(‹measure›) OR ~ABS!~(‹number›)

ABS([Sales Gap]) // -13.6 -> 13.6

ABS(4) // Returns 4
ABS([Profit])

Alteryx

~ABS!~(‹measure›) OR ~(‹number›)

ABS([Sales Gap]) // -13.6 -> 13.6

ABS(4) // Returns 4

OrgVue

~Math.abs!~(‹number›) OR ~Math.abs!~(‹measure›)

tSQL

~ABS!~(‹field›)

Python

~abs!~(‹number›)

NB. The above example assumes a variable has been declared for salesGap. For more information, go to the chapter General > Variables.

Last updated

Was this helpful?