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
Anonymous
Not applicable

Find and replace certain words in a string

Hi everyone,

 

I have a table with 7 columns and 12000 rows contains learners' survey results. 

One of the columns contains the students' comments (string). These strings may contain one or more lecturers' name.

I am trying to create a query using M language that allows me to identify the strings with the lectures' name and replace the lecturers' name with the word "Lecturer".

Also, another table includes the list of lecturers' name (1 column, 2000 rows).

I hope it makes sense.

 

Thank you,

Ata

2 REPLIES 2
lbendlin
Super User
Super User

There are many examples available for this requirement. Here's one of them: Bulk Find And Replace In Power Query | How To Excel

Anonymous
Not applicable

Thank you Ibendlin. Appreciate your response. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors