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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PBI_newuser
Post Prodigy
Post Prodigy

Trim Text before second delimiter

Hi, 

 

I have a list of products as below. I wish to truncate the "(X-YZ)-" and "(AB-D)-" from the name.

How can I do it?

 

Product (Before)

(X-YZ)-FRIDGE

WASHING MACHINE

(AB-D)-DRYER

IRON

Product (After)

FRIDGE

WASHING MACHINE

DRYER

IRON

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Try extracting text after rightmost delimiter:

image.png

image.png

image.png

Br,
J


Connect on LinkedIn

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I don't think it's the most efficient way but you could do this using power query. 

 

Add conditional column, Merge, then split by a delimiter. 

Karlos_0-1595927091166.pngKarlos_1-1595927119285.pngKarlos_2-1595927131772.png

 

 

tex628
Community Champion
Community Champion

Try extracting text after rightmost delimiter:

image.png

image.png

image.png

Br,
J


Connect on LinkedIn
Anonymous
Not applicable

Hi,

 

What you can try in PowerQuery is use: Text.AfterDelimiter(Product, "-", {0, RelativePosition.FromEnd})

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 MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.