DAX Math & Trigonometric - ABS function


Advertisements

Description

Returns the absolute value of a number.

Syntax

ABS (<number>) 

Parameters

Sr.No. Parameter & Description
1

number

The number for which you want the absolute value.

Return Value

A decimal number.

Remarks

The absolute value of a number is a decimal number, whole or decimal, without its sign.

You can use DAX ABS function as a nested function to a DAX function that requires a positive number as a parameter. The numbers that are returned from the expressions used as parameters can be returned as positive numbers with the nested ABS function.

Example

= ABS (-2.5) returns 2.5. 
dax_functions_mathematical_trigonometric.htm

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements