Absolute value (no sign).
| Field | Value |
|---|---|
| Category | Math |
| Type | Scalar (operates value by value) |
| Arity | 1 argument (fixed) |
| Compiles to SQL (calculated column) | Yes |
| Version | Formula engine v3. |
Aliases#
Canonical name: ABS. Accepted aliases (case-insensitive): (nenhum).
Syntax#
code
ABS(expr)All arguments are expressions.
Returns#
Number.
Null handling#
Text that is not a number, or a blank value in a calculation, becomes a friendly error (pt-BR) — never a silent zero.
Evaluation context#
Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).
Differences from DAX#
- DAX equivalent: ABS
- Compatibility: Compatible with DAX
- Note: Same absolute value.
Examples#
code
ABS(lucro)Example with values#
Input: profit = -150.
code
ABS(-150) → 150Expected result: 150
Business example#
Show the size of a deviation from target without the sign (above or below gives the same magnitude).
Common errors#
Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.