cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## SUM of SALES not rounding to the nearest 100 before decimal point correctly

Hi Community Members,

I am trying to roundoff SALES column to the nearest 100 before decimal point. ROUND function is rounding SALES to the nearest 100 before the decimal point but as soon as I change SALES column to SUM of SALES, the ROUND function does not work as expected.

First column is SALES and second is round off of SALES - this is working as expected but the next images is SUM of SALES (not working as expected)

First column is SALES and second column is SUM of SALES. The second column is not coming-up correctly.

Can someone please share thoughts on this issue?

1 ACCEPTED SOLUTION
Super User

Hi @PS0304
Sorry for misunderstanding.

You can use :

sum_rounded = Round([sum_],-2)

I also updated PBIX which I linked in the first response.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

5 REPLIES 5
Super User

Hi @PS0304
You can use measure :

sum_rounded = FLOOR([sum_],100)

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Frequent Visitor

Thanks for responding and trying. Much appreciated.

I tried but it's rounding slightly off. Image on the left side is the actual SUM of SALES and the right image is after using the FLOOR function. The function should return 25,267,300 because 57 should be rounded off to the next hundred. Could you please provide more insight here.

Super User

Hi @PS0304
Sorry for misunderstanding.

You can use :

sum_rounded = Round([sum_],-2)

I also updated PBIX which I linked in the first response.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Frequent Visitor

@Ritaf1983 Thank you so much. It worked.

Super User

@PS0304
You're welcome 🙂