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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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