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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors