ABS Function (DAX)

How does the ABS function (DAX) work?

The ABS function (DAX) returns a number’s absolute value.

ABS Formula Syntax


How do you use the ABS function?

The absolute value of a number is a decimal number, whole or decimal, without its symbol. You can use the ABS function as a nested function which requires a positive number as a parameter.

By using the nested ABS function, the numbers returned from the expressions used as parameters can be returned as positive numbers.

Related Blog Posts

Related Support Forum Posts

Problem With SUMX With IF
Median Of A Time Column

Considerations when using the ABS function

If you want the absolute value of a number with the same type of data and without its sign, you use the ABS function.

This will ensure that only non-negative numbers are returned from expressions that are nested in functions that require a positive number.

Related Video Tutorials

Formula examples using the ABS function

=ABS (
      [DealerPrice]- [ListPrice]

= ABS (
    SUM ( Table [Amount] )

= SUMX (Table,
    ABS (
      SUM ( Table, [Amount] )

Related DAX Functions


Related Course Modules




Download our comprehensive DAX Formula Reference Guide as perfect companion as you learn how to use DAX formulas within Power BI.

Download DAX Formulas Reference Guide
Download DAX Formula Reference Guide