RoundUp
rounds up to the next higher number, away from zero.
The RoundUp()
function in Power FX is used to round a number up to a specified number of decimal places.
Unlike regular rounding, which rounds up or down depending on the value, RoundUp()
always rounds the number upwards, ensuring that it goes to the nearest higher value.
Syntax
ThisItem.NumberColumn
: The column contains the number values you want to round up.
DecimalPlaces
: The number of decimal places to round to.
Example
If you have a column TotalPrice
and want to round it up to 2 decimal places, you can use:
For example:
12.345
becomes12.35
9.99
remains9.99
(no change since it is already rounded up)
Best Practices
RoundUp()
can be combined with other functions like Sum()
, Average()
, or Datediff()
to ensure the result is always rounded up correctly.
Last updated