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
JDL623
New Member

extract text connected by an underscore from a string of text

Hi, Is there a way to extract a string of text connected by an underscore into a new column?

 

capture.png

Thank you

1 ACCEPTED SOLUTION
m_dekorte
Super User
Super User

Hi @JDL623 

 

Give this a go:

Text.Combine( List.Select( Text.Split([Description], " "), each Text.Contains(_, "_" )), ", ")

 

m_dekorte_0-1698824548316.png

 

I hope this is helpful

View solution in original post

2 REPLIES 2
m_dekorte
Super User
Super User

Hi @JDL623 

 

Give this a go:

Text.Combine( List.Select( Text.Split([Description], " "), each Text.Contains(_, "_" )), ", ")

 

m_dekorte_0-1698824548316.png

 

I hope this is helpful

This worked perfectly. Thank you!

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.