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.
Abs( Number )
Number – Required. The number to get the absolute value of.
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
Abs ( SingleColumnTable )
SingleColumnTable – Required. A single column table of numbers to get the absolute values of.
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.
Did You Enjoy This Article? 😺
Subscribe to get new Power Apps articles sent to your inbox each week for FREE