Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
text | Result |
001 - Hello | Hello |
15 - Hi | Hi |
22 - Thank you | Thank you |
thank you
Solved! Go to Solution.
Hi @MagMag31
Please try
Result =
PATHITEM ( SUBSTITUTE ( SELECTEDVALUE ( 'Table'[Text] ), " - ", "|" ), 2 )
Hi @MagMag31
Please try
Result =
PATHITEM ( SUBSTITUTE ( SELECTEDVALUE ( 'Table'[Text] ), " - ", "|" ), 2 )
It works, thank you so much !!👍