ABS Function (DAX)

How does the ABS function (DAX) work?

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

ABS Formula Syntax

ABS(
     <number>
)

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 (DAX) 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

Need Help with DAXquery using nested IF statement/Switch
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

Ultimate-Beginners-Guide-To-PowerBI

DOWNLOAD

To access our comprehensive DAX formula reference guide just insert your email address below. The resource will download immediately and we’ll also email it to you.