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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Simon_29
Helper II
Helper II

Merge columns based on words contains

I have one more question. I will give a little more precise data.
I created the ISSUE_CLEANED column from the Issue (already without words in the STOP_WORDS column), but now I needed to merge the following using some contains function:

To the new table with the Issue column from tables no. 1 in picture no. 1 assign the values from tables no. 2 in picture no. 2 so that if the words from the ISSUE_CLEANED column are in the Issue column, match the Issue_Group_Type column.

Simon_29_0-1665925158854.png

 

Simon_29_1-1665925159005.png

 



Could you help me with this? Thank you very much 

Simon_29_2-1665925158306.png

 

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Simon_29 ,

Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

 

Best Regards,
Community Support Team _ kalyj

v-yanjiang-msft
Community Support
Community Support

Hi @Simon_29 ,

According to your description, I create a sample.

Table1:

vkalyjmsft_0-1665990352614.png

Table2:

vkalyjmsft_1-1665990373325.png

Issue column in Table1 and ISSUE_CLEANED column in Table2 are not totally matching, for example "mbo goals attainmet is wrong" in Table1 and "mbo goals attainmet wrong" in Table2. In my understanding, you want to get the corresponding Issue_Group_Type in Table1 from Table2.

You can use the fuzzy match. Select the "Use fuzzy matching to perform the merge" when merge quries. Here're two notes:

1.For the Similarity threshold option, we should tweak the value to get the expected matching.

vkalyjmsft_2-1665990822060.png

2.As there're many similar rows in your sample, to get the most suitable one, we should enter 1 in the option "Maximum number of matches".

vkalyjmsft_3-1665991020940.png

Get the result:

vkalyjmsft_4-1665991278895.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hi 🙂

Thank you very much for your reply.

This would be a partial solution, but the point is that redundant words like "and", "of" and similar are deliberately removed in ISSUE_CLEANED. Therefore, it was just some contains function that will say that if there are ISSUE_CLEANED in the Issue (that is, phrases cleaned of redundant words), then find the intersection and assign Issue_Group_Type. Is there any such function/possibility to do it?

Fuzzy works but not quite well, for example with Issue: missing order from attainment Could not find link to ISSUE_CLEANED: missing order attainment and did not assign Issue_Group_Type.. however, they do not match in only one word.

Hi @Simon_29 ,

There is a function Text.Contains  can partially work, it only works when the find text is continuous in the within text. For example "missing order attainment" contains "missing order", but "missing order from attainment" doesn't contain "missing order attainment", because there is a from in the middle.

 

By my test, when set the Similarity threshold to 0.6, "missing order attainment" will matchs "missing order from attainment".

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.