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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
LMDV
Frequent Visitor

[ power query ] MERGE not working even though values are the same

Hello - need your help please; this is doing my head in.

I'm trying to do a simple MERGE and from what I can see, the values look the same.

But for some reason, MERGE cannot find any match.

 

I've tried the following but it still doesn't work

- transformed both columns into decimal numbers

- applied Number.From on both columns

- multiplied both by 1

 

I also copied both in EXCEL --- XLOOKUP does not work either. In Excel, (1) applying VALUE() and (2) multiplying the first column by 1 do not work. What worked in Excel is to go through each value in the first table and hit enter. 

 

How do i solve this in POWER QUERY? HELP please!

 

 

 

merge not working.png

 



@m_dekorte i'd appreciate your help please?

2 ACCEPTED SOLUTIONS
BA_Pete
Super User
Super User

Hi @LMDV ,

 

The values appear the same in that format, but in the background one is probably 5.520000000133 or similar.

I'd recommend applying Number.Round to both values before the merge and see if that helps.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

m_dekorte
Super User
Super User

Hi @LMDV,

 

I'm with @BA_Pete on this one, that's most likely.

 

Generally there are a couple of things to look out for when a merge is not returning the expected result. 

1) The case of strings
2) The datatype of values
3) The addition of invisible characters like a space for example

4) The number of decimal places

View solution in original post

4 REPLIES 4
m_dekorte
Super User
Super User

Hi @LMDV,

 

I'm with @BA_Pete on this one, that's most likely.

 

Generally there are a couple of things to look out for when a merge is not returning the expected result. 

1) The case of strings
2) The datatype of values
3) The addition of invisible characters like a space for example

4) The number of decimal places

BA_Pete
Super User
Super User

Hi @LMDV ,

 

The values appear the same in that format, but in the background one is probably 5.520000000133 or similar.

I'd recommend applying Number.Round to both values before the merge and see if that helps.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




LMDV
Frequent Visitor

this worked! thanks BA_Pete!

 

Took you a little while to get round to this, huh? 😂

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors