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
gdps_vc
Helper I
Helper I

SUM rounded numbers

I need to adjust my pwd calculation

 

By law here in my country, factories need 5% of employees to be pwd.

 

Until then the formula below was working normally, and everyone was happy:

PWD HC Goal = [Total HC] *5/100

[Total HC] is a simple COUNTROWS from the employee table.


However, I've been told that fractions should always be rounded up, and this is causing a problem in the formula when we try to see the grand total.



FactoryTotal HC5%RoundUP 
1854,255 
21396,957 
31366,87 
420910,4511 
5361,82 
621310,6511 
770,351 
81678,359 
 99249,653SUM
  50 RoundUP

 

For each factory, the formula PWD HC Goal = ROUNDUP([Total HC] *5/100,0) works.

However, if I try to see the total, the final number is not the sum of the rounded numbers, but the rounding of the summed numbers. Which logically makes sense, but it's not what I need.

 

How can I adjust this?

 

Best Regards,

5 REPLIES 5
v-sdhruv
Community Support
Community Support

Hi @gdps_vc ,
Just wanted to check if you had a chance to review the solutions provided by the super users?
If the reponses had addressed your query, please accept as solution or give Kudos so that other users can benefit from it.
Thank you

v-sdhruv
Community Support
Community Support

Hi @gdps_vc ,
Just wanted to check if you had a chance to review the solutions provided by the super users?
If the reponses had addressed your query, please accept as solution or give Kudos so that other users can benefit from it.
Thank you

v-sdhruv
Community Support
Community Support

Hi @gdps_vc ,
Just wanted to check if you had a chance to review the solutions provided by the super users?
If the reponses had addressed your query, please accept as solution or give Kudos so that other users can benefit from it.
Thank you

johnt75
Super User
Super User

You need to force the total to work out the rounding at the factory level. You can do that with something like

Round Up =
SUMX ( VALUES ( 'Table'[Factory] ), ROUNDUP ( [Total HC] * 5 / 100, 0 ) )
bhanu_gautam
Super User
Super User

@gdps_vc , Try using

PWD HC Goal =
SUMX(
ADDCOLUMNS(
'EmployeeTable',
"RoundedPWDGoal", ROUNDUP([Total HC] * 5 / 100, 0)
),
[RoundedPWDGoal]
)




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

Proud to be a Super User!




LinkedIn






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.