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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors