How To Use The Power Apps ABS Function
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 n...
- Published
- Reading time
- 1 min read
Before you start
Is this guide for you?
- Best entry point
- Power Apps
- Time investment
- 1 min read
Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/how-to-use-the-power-apps-abs-function/. Author: Matthew Devaney.
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 Code language: JavaScript ( javascript )
The difference between two numbers is always positive when placed inside the Abs function. Abs( 8 -3 ) // Result: 5 Abs( 3 -8 ) // Result: 5 Code language: JavaScript ( javascript ) 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] ) Code language: CSS ( css )
The signs are removed from each number in the table so they all become positive. Value 2 1 0 1 2 Did You Enjoy This Article? 😺
Subscribe to get new Copilot Studio articles sent to your inbox each week for FREE Enter your email address Sign Me Up
Tagged
Power Apps
Have a Microsoft 365 topic idea?
Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.
Keep learning Microsoft 365
Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.
Continue learning
Related tutorials
Related questions
Related comparisons
Next action