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

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

Reply
ptmuldoon
Resolver I
Resolver I

Get Right of Second - (dash)

I am pulling in data from a JSON source, and one the fields that is imported looks something like such:

 

Number - Location - Description

 

And I need to put into a new column, just that Description part.  ie, what is to the right of the second dash in the string.

 

Any thoughts on the formula for that?

Thank you,

PT

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @ptmuldoon ,
yes, check that column and then add a new column like so:

ImkeF_0-1666115549349.png

 then:

ImkeF_1-1666115608048.png

I would choose the option "From the end of the input",
but you can also start from the beginning and then skip as many delimiters as you need.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

1 REPLY 1
ImkeF
Community Champion
Community Champion

Hi @ptmuldoon ,
yes, check that column and then add a new column like so:

ImkeF_0-1666115549349.png

 then:

ImkeF_1-1666115608048.png

I would choose the option "From the end of the input",
but you can also start from the beginning and then skip as many delimiters as you need.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.