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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BI_Analyticz
Helper V
Helper V

How to merge with Contains as Condition? Is this Possible?

Friends, I have 2 tables like below. I want to join the 2 tables using the Project Name column but the values are not exactly same. If it possible to merge these 2 tables using any CONTAINS or by any means?

 

If you look at the below tables I have highlighted the same projects. But the name is slightly different in both the tables. A1-Infra Management is same as Infra Management. Is there any possibility to merge these 2 tables since I need the Project ID from the 2nd table. 

 

Please suggest my best approaches too.

 

BI_Analyticz_0-1616660585741.png

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @BI_Analyticz 

 

Download sample file 

 

Use Fuzzy Matching in the Power Query Merge.  If you set the Similarity Threshold to 0.5 all 4 rows in your sample tables are matched.

Screenshot 2021-03-25 190140.png

Screenshot 2021-03-25 190345.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @BI_Analyticz 

 

Download sample file 

 

Use Fuzzy Matching in the Power Query Merge.  If you set the Similarity Threshold to 0.5 all 4 rows in your sample tables are matched.

Screenshot 2021-03-25 190140.png

Screenshot 2021-03-25 190345.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PC2790
Community Champion
Community Champion

Hello @BI_Analyticz ,

 

Have you considered using Fuzzy matching?

So there is an option in the merge window that you can check. See if it turns out to be useful for you.

PC2790_0-1616662426421.png

 

For more infor on fuzzy matching,Refer link

 

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.

Top Solution Authors