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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Scaffnull
Helper I
Helper I

Rounding whole numbers formula DAX

Hi all,

Is there a way to use the DAX formula to round whole numbers by only changes of 5? So if I have 11 I want the result to be 10, if I get 14 I want the result to be 15.

Appreciate the help! 

1 ACCEPTED SOLUTION

Not sure what you mean.  You can use the column or expression value in the MROUND function.  For example,

 

NewColumn = MROUND(Table[NumberColumn], 5)

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

5 REPLIES 5
Scaffnull
Helper I
Helper I

Almost found a solution, with: New column = ROUND(Table[ColumnName], -1)

The rounding goes to closes 0...but for instance that 44 go to 40 I rather have it 45. Will keep trying😊

mahoneypat
Microsoft Employee
Microsoft Employee

You can use the MROUND function for that.  For example, MROUND(14, 5) = 15

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat Thanks! And if I have rows with different values, is there a way to optimize that? For example I have 132 (want 130), 33 (want 35) and so on...

Not sure what you mean.  You can use the column or expression value in the MROUND function.  For example,

 

NewColumn = MROUND(Table[NumberColumn], 5)

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat Simple as that! Worked like a charm. All my values that are between 1-4 rounds to either 5 or 0. (24 rounds to 25, 33 rounds to 35, 11 round to 10 etc,.) Perfect, thanks!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.