How To Use The Power Apps ABS Function

Summary

The Power Apps ABS function returns the absolute value of a number, a number with the sign removed. Negative numbers are changed to positive. Positive numbers remain positive.


Syntax #1

Abs( Number )


Arguments

Number – Required. The number to get the absolute value of.


Examples

A negative number becomes a positive number. A positive number or zero remain the same.

Abs(-10) // Result: 10
Abs(3)   // Result: 3
Abs(0)   // Result: 0


The difference between two numbers is always positive when placed inside the Abs function.

Abs(8-3) // Result: 5
Abs(3-8) // Result: 5


Syntax #2

Abs ( SingleColumnTable )


Arguments

SingleColumnTable – Required. A single column table of numbers to get the absolute values of.


Examples

A single column table of numbers is input into the Abs function.

Abs([-2, -1, 0, 1, 2])


The signs are removed from each number in the table so they all become positive.

Value
2
1
0
1
2