Forum Discussion

LMDV's avatar
LMDV
Frequent Visitor
3 years ago
Solved

[ 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!

 

 

 

 



m_dekorte i'd appreciate your help please?

  • 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

  • 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

4 Replies

  • 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

    • LMDV's avatar
      LMDV
      Frequent Visitor

      this worked! thanks BA_Pete!

      • BA_Pete's avatar
        BA_Pete
        Icon for Super User rankSuper User

         

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

         

        Pete

  • m_dekorte's avatar
    m_dekorte
    Icon for Resident Rockstar rankResident Rockstar

    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