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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.