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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sar_Aan
Frequent Visitor

How to get the text between delimiters of a long text using dax?

I have a text like this /sfdfsfdf/dsadsaa3-4rwer-34rwerfw-234-3423-efwfdsdf/rweerfdfsd/sdfsd-fsdfsdf-fsds-dfsdv-fsvsfvsvs-svfsvsv-1/sdvsvds/microsoft.compute/virtualmachines/fdadfadf434 where I have to extract only "virtual machines" using dax (not m code). How can I do that?

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

Column = 

VAR _Patch = SUBSTITUTE([Data],"/","|")
VAR _LenPatch = PATHLENGTH(_Patch)
VAR _Result = PATHITEM(_Patch,_LenPatch-1)
RETURN
_Result

Screenshot_2.png

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

pls try this

Column = 

VAR _Patch = SUBSTITUTE([Data],"/","|")
VAR _LenPatch = PATHLENGTH(_Patch)
VAR _Result = PATHITEM(_Patch,_LenPatch-1)
RETURN
_Result

Screenshot_2.png

Thank you very much. This worked

Idrissshatila
Super User
Super User

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors