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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.