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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
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