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
dlopesc04
Resolver II
Resolver II

Floating point precision problem on cards

My cards started showing values like those in the screenshot below today:

dlopesc04_1-1759431245523.png
This is how the format of the measures is configured:

dlopesc04_2-1759431290182.png

It should just show a 0

I really don't want to go over all my measures and add something like the below to them:

Measure Fixed = IF(ABS([YourMeasure]) < 0.000000000000001, 0, [YourMeasure])

Is there any way to fix this with minimal suffering?

P.S. Yes this is happening because the overall sum of a column in the table should return 0, but isn't:

dlopesc04_3-1759431432647.png

 

Edit: It seems this problem has been observed about three months ago, but there was no solution there:
https://community.fabric.microsoft.com/t5/Power-Query/Decimal-Precision/m-p/4742208#M152402
Like the author of that post, I also feel very strongly that we should not have to round anything in Power BI explicitly, and that this floating-point precision problem should be handled automatically by Power BI.

 

1 ACCEPTED SOLUTION

Hi @dlopesc04 

To avoid adding ROUND() to every measure, you can try these options:

  • Change the column's data type to Fixed Decimal Number in Power Query. This ensures precision is handled at the source, so measures display clean values (like 0) without individual adjustments. Reload your model after making this change.
  • Create a base measure with ROUND and reference it in other calculations. This reduces the number of edits, though it requires updating existing measures to use it.

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Thanks.

View solution in original post

6 REPLIES 6
danextian
Super User
Super User

Hi @dlopesc04 

Possibly because precision loss or imprecision occurs.  - https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-data-types?utm_source=chatgpt.com#ac...

I would just  instead round the number to about 10 decimal values.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Yeah, it most definitely is because of that. Also adding ROUND() to the measures rounds them to 0.
But that would be beyond impractical, and would introduce another layer of 'dumb design' proofing. Do I really now have to add a ROUND() to EVERY. SINGLE. MEASURE. I. EVER. CREATE ??

Sorry, but I refuse.

Hi @dlopesc04 

To avoid adding ROUND() to every measure, you can try these options:

  • Change the column's data type to Fixed Decimal Number in Power Query. This ensures precision is handled at the source, so measures display clean values (like 0) without individual adjustments. Reload your model after making this change.
  • Create a base measure with ROUND and reference it in other calculations. This reduces the number of edits, though it requires updating existing measures to use it.

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Thanks.

Hi @dlopesc04 

Thank you for reaching out to the Microsoft Fabric Forum Community.

 

I hope the information provided was helpful. If you still have questions, please don't hesitate to reach out to the community.

 

Greg_Deckler
Community Champion
Community Champion

@dlopesc04 I can't replicate this, what version of Desktop are you on?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I am on 2.147.1085.0 64-bit (September 2025)

Plus, the data type on the source is Decimal (30,5), meaning, only 5 digits after the decimal point

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.