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! Learn more

Reply
Shiji
Regular Visitor

Matching column of names to column of notes

Hi! What is the best way to compare a column of names with a column containing notes? If I were to just match names, I would build a relationship and use fuzzy match. However, since the second column contains sentences/paragraphs, fuzzy matching yields almost no results. Is there a best practice on how to do this? I'm thinking it involves a find/function and loop? Any help would be appreciated! Example columns are provided below.

 

Names
Ashok Kumar
Baby Doe
Brett Boe
Carla Coe
Frank Foe
Jackie Joe
Jane Doe
Jane Poe
Jane Roe
Joe Public
John Doe

 

Notes
Jane Poe had a little lamb
Jake was all business when he wore his clown suit.
A quiet house is nice until you are ordered to stay in it for months.
Writing a list of random sentences is harder than I initially thought it would be.
Best friends are like old tomatoes and shoelaces.
Seek success, but always be prepared for Joe Public.
They improved dramatically once Frank Foe left.
The small white buoys marked the location of hundreds of crab pots.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Shiji ,

You can create a calculated column as below in Names table, please find the details in the attachment.

 

Notes = 
CALCULATE (
    MAX ( 'Notes'[Notes] ),
    FILTER ( 'Notes', CONTAINSSTRING ( 'Notes'[Notes], 'Names'[Names] ) )
)

 

yingyinr_0-1657866285749.png

CONTAINSSTRING

CONTAINSSTRING, CONTAINSSTRINGEXACT – finds text string in another text string (DAX – Power Pivot, P...

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Shiji ,

You can create a calculated column as below in Names table, please find the details in the attachment.

 

Notes = 
CALCULATE (
    MAX ( 'Notes'[Notes] ),
    FILTER ( 'Notes', CONTAINSSTRING ( 'Notes'[Notes], 'Names'[Names] ) )
)

 

yingyinr_0-1657866285749.png

CONTAINSSTRING

CONTAINSSTRING, CONTAINSSTRINGEXACT – finds text string in another text string (DAX – Power Pivot, P...

Best Regards

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.

Top Solution Authors