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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mkohler28
Frequent Visitor

Merge not Finding Matches

I am trying to merge values from one table to the next, the main table has unique values. When I do the merge I continue to get null values on some rows but not others, even though the data is there. Any suggestions?

 

Capture.JPGCapture1.JPG

3 REPLIES 3
ImkeF
Community Champion
Community Champion

Could be due to non-printable characters or blanks. Clean and trim your key columns before the merge  (Text.Trim and Text.Clean):

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thanks. I've tried that already but still getting the same results. 

ImkeF
Community Champion
Community Champion

Strange, you did that on both columns (in both tables)?

 

Then you need to analyze the difference:

 

  • Text.ToList will create a list from both strings
  • if lenghts are both the same, compare each x-th element to find the difference

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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