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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors