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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Sar_Aan
Regular 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_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.