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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MagMag31
Regular Visitor

Extract String after certain symbol with a measure

Hello,


I need help please, how do you extract the text from the string after the "-" and the second space (column Text), into a new column (column Result), only with a measure. without using a calculated column or in M-Script because I connect to a dataset where I can only create measures


i think we can do it with selectedvalue but I didn't manage to do it

textResult
001 - HelloHello
15 - HiHi
22 - Thank youThank you


thank you

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @MagMag31 
Please try

Result =
PATHITEM ( SUBSTITUTE ( SELECTEDVALUE ( 'Table'[Text] ), " - ", "|" ), 2 )

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @MagMag31 
Please try

Result =
PATHITEM ( SUBSTITUTE ( SELECTEDVALUE ( 'Table'[Text] ), " - ", "|" ), 2 )

It works, thank you so much !!👍

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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