Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kattlees
Post Patron
Post Patron

Round to nearest $5

I'm trying to round to the nearest $5.

 

HPayRoundUp = ROUNDUP([HPay],-0.5)

 

It takes 22.45 and is rounding to 30.

 

If I go any lower (-0.2) it goes to 23

1 ACCEPTED SOLUTION

Hi @kattlees,

 

Then you can a formula like this :

 

HPayRoundUp = (INT([HPay]/5)+1)*5

and if you have negative number then you will adapt it...

 

Ninter

View solution in original post

6 REPLIES 6
Interkoubess
Solution Sage
Solution Sage

Hi @kattlees,

 

Did you try the Mround function?

 

Let us know if you tried and did not work, then give few examples with expected results and we will figure out.

 

Thank you.

 

Ninter

Yes, HPayRoundUp = MROUND([HPay],5) rounds down so 22.45 becomes 20

Hi @kattlees,

 

So for example 22.45 you want 30, and what about 16.45, 18.56 or 27.64?

 

Thank you.

 

Ninter

Not quite. I want 22.45 to go to 25..  22.01 would go to 25

 

Everything would round UP to the next $5 increment.

 

16.45 would go to 20, 27.64 would go to 30.

Hi @kattlees,

 

Then you can a formula like this :

 

HPayRoundUp = (INT([HPay]/5)+1)*5

and if you have negative number then you will adapt it...

 

Ninter

Thank you!!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.