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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors