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 September 15. Request your voucher.

Reply
W2SANC
Helper I
Helper I

Deleting Specific Word from Column

Hello PBI Community! 

 

I have a column of different county names, some just the name, others, the name and the word county. See below for the example and desired output. 

 

Example: 

Column Name: County Name

Clay

Acorn

Bell County

Anchorage

Brock County

Orange County

Smith

Willacy

Carter County 

 

Output Desired: 

Clay

Acorn

Bell County

Anchorage

Brock County

Orange County

Smith

Willacy

Carter County  

 

I have tried extract after deliminator, but it just deleted the entire cell contents, as county is the last word in the cells. I know replace value is an option, but with 30,000 lines with a decent % having ending in the word county, I was hoping to see if there was a less manual way of doing this. 

 

Thanks in advance! 

 

9 REPLIES 9
W2SANC
Helper I
Helper I

Apologies about this! The desired output is: 

Clay

Acorn

Bell

Anchorage

Brock

Orange

Smith

Willacy

Carter

 

pls try this

Screenshot_2.png

This did not work for me. Any other ways to fix this error?

this variant try

Screenshot_2.png

explain why it didn't work

Ahmedx
Super User
Super User

pls try this

Screenshot_2.png

Ahmedx
Super User
Super User

do you need to remove the words county from the Name of column ?

Ahmedx
Super User
Super User

It’s not clear what you want, the result is the same as the input data

Ritaf1983
Super User
Super User

Hi @W2SANC 
What is the difference between the example and a desired output?
It seems the same ...

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.