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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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