These cookies provide us with information on how our websites are being used, to help us improve the quality and relevance of content we place on them. Additionally, they also allow us to show you embedded videos and remember your preferences and actions, so that the websites do not bother you with the same request repeatedly (e.g. filling a form to download a PDF file and provide feedback about such actions to our affiliated entities).
ABS
The absolute value function (ABS) returns an absolute value of a number (e.g., Revenue) as a positive number:
- positive inputs will remain unchanged
- negative inputs will be rendered positive
Syntax
SELECT ABS(…)
SELECT ABS(number)
SELECT ABS(metric)
Examples
SELECT ABS(-5) returns the value "5"
SELECT ABS(10) returns the value "10"
SELECT ABS(({metric/total_amount})-(SELECT {metric/total_amount} WITHOUT PF))