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

Removing unexpected text from a column

Hello,

I have a column which contains a number of different word values that repeat numerous times down the column. 

Sometimes there's instances where the these words have extra text at the end and there's different delimiters used so its hard to predict and therefore I've not used that function. 

 

Is there a way to just retain the standard word values and delete the extra text without knowing what that extra text will be? It happens across the majority of the different word values too.

 

So in the below table I'd like to only keep the non-red text. Thanks

 

StatusCount
Backlog12
Backlog - 26th Sept45
Archived2
Archived xyz0
Archived-12314
1 ACCEPTED SOLUTION
JoeBarry
Solution Sage
Solution Sage

Hi @Anonymous 

 

Why not try a custom column 

if Text.Contains([Status], "Backlog") then "Backlog else
if Text.Contains([Status], "Archived") then "Archived" else [Status]

 

Thanks

Joe

If this post helps, then please Accept it as the solution

 

View solution in original post

3 REPLIES 3
mlsx4
Memorable Member
Memorable Member

Hi @Anonymous 

 

If you only need the first word, you can extract text before delimiter, and use "space" as char

JoeBarry
Solution Sage
Solution Sage

Hi @Anonymous 

 

Why not try a custom column 

if Text.Contains([Status], "Backlog") then "Backlog else
if Text.Contains([Status], "Archived") then "Archived" else [Status]

 

Thanks

Joe

If this post helps, then please Accept it as the solution

 

mussaenda
Super User
Super User

Hi @Anonymous 

How are we going to know your standard words? are they only 2 words --Backlog and Archived?

 

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.

Top Solution Authors