cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ChallengerTom
Frequent Visitor

Power BI and Rounding Error Issues

Hi All, 

Question about whether it is possible to code the rounding for Power BI.

 

In my matrix , the values do not sum to the total amount.

 

I.e. The Total in the image (based on the rounding) is 2,030 instead of 2,029.

I know that the Total number is rounded correctly, but is there any way for the Total calculation to sum the rounded numbers, rather than the actuals so either the total equals 2,030, or the number that is rounded down in the rows is rounded up?

 

Rounding Capture.PNG
A potential solution might be toshow deciamls, but I cannot do it for this exercise. 

 

TIA!

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft v-gizhi-msft
Microsoft

Re: Power BI and Rounding Error Issues

Hi,

 

According to your description, i create a table to test:

41.PNG

Choose a table visual and it shows:

42.PNG

Then create a measure:

Measure = SUMX(DISTINCT('Table'[ID]),ROUND(CALCULATE(SUM('Table'[Value]))/1000000,0))*1000000

And it shows:

43.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

Re: Power BI and Rounding Error Issues

These numbers are in Million(M). So just change the format to None and check, if it is wrong. This typical round display seems like wrong. But GT again calculated so it is showing diff.

 

You can use format and round.

https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin





Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin


Microsoft v-gizhi-msft
Microsoft

Re: Power BI and Rounding Error Issues

Hi,

 

According to your description, i create a table to test:

41.PNG

Choose a table visual and it shows:

42.PNG

Then create a measure:

Measure = SUMX(DISTINCT('Table'[ID]),ROUND(CALCULATE(SUM('Table'[Value]))/1000000,0))*1000000

And it shows:

43.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors