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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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