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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Jerome22
Resolver I
Resolver I

sum return (near) incorrect result (rounding issue???)

hi,

 

I just found a strange issue.

I have a table in a Fabric Lakehouse with an amount column = 572.36

If I do a sum of the column, the result is : 572.3599853515625

 

the amount column is a real type

 

my 2 queries:


select [Amount]
from DetailedCustLedgEntry dd
where  [CustLedgerEntryNo]= '100496'

select sum([Amount])
from DetailedCustLedgEntry dd
where  [CustLedgerEntryNo]= '100496'

pretty simple, in my test there is 1 and only 1 row matching my customer, so the sum is summing 1 row only.
if I cast my column to a money type, the rounding issue disappear.
 
it's not a big deal, but a strange behavior.
3 REPLIES 3
Anonymous
Not applicable

Hi @Jerome22 ,

Thanks for using Fabric Community.

Data type of the column is double.

vgchennamsft_0-1713865482410.png



Query 1:

vgchennamsft_3-1713865655245.png

 

Query 2:
vgchennamsft_2-1713865628403.png


I can find results from both the queries are same when data type is double.

Data types - Microsoft Fabric | Microsoft Learn

vgchennamsft_4-1713865915647.png


Hope this is helpful. Please let me know incase of further queries.

Anonymous
Not applicable

Hi @Jerome22 ,

We haven’t heard from you on the last response and was just checking back to see if your query was answered.
Otherwise, will respond back with the more details and we will try to help .

Thanks

Anonymous
Not applicable

Hi @Jerome22 ,

We haven’t heard from you on the last response and was just checking back to see if your query was answered.
Otherwise, will respond back with the more details and we will try to help .

Thanks

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors