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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
BrunieToons
Frequent Visitor

Problem merging on decimal data type

Does anyone know why about 10% of my records fail to join on this ID column, which is comes in from the data source as a decimal format? When I transform it to int, the join works. Here is the merge preview when both columns are in decimal format:

BrunieToons_0-1647354344232.png

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Change it to integer format first. Decimal has 15 level precision and since PCs are floating point, what looks like to you 3 might be 2.9999999999999 or 3.000000001. You've seen that in Excel.

merging on whole numbers will work fine.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Change it to integer format first. Decimal has 15 level precision and since PCs are floating point, what looks like to you 3 might be 2.9999999999999 or 3.000000001. You've seen that in Excel.

merging on whole numbers will work fine.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors