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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
PS0304
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. 

PS0304_0-1697302656161.png

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)

 

 

PS0304_1-1697302740116.png

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

Hi @PS0304 
Sorry for misunderstanding.

You can use : 

sum_rounded = Round([sum_],-2)
Ritaf1983_0-1697336990910.png

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

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @PS0304 
You can use measure : 

sum_rounded = FLOOR([sum_],100)
Ritaf1983_0-1697304915652.png

Link to PBIX with example 

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

Hi @Ritaf1983 

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.

PS0304_0-1697306292960.png

 

Hi @PS0304 
Sorry for misunderstanding.

You can use : 

sum_rounded = Round([sum_],-2)
Ritaf1983_0-1697336990910.png

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

@Ritaf1983 Thank you so much. It worked.

@PS0304 
You're welcome 🙂

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.