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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
LearningBI1986
Frequent Visitor

Removing like strings in one column

Hey guys,

I have a column of "Charge Description," and would like to shorten the text in the column.

It looks something like this:

Shop(1) - 1st Checked Bag

Shop(2) - 1st Checked Bag

Shop(5) - 1st Checked Bag

Shop(3) - 1st Checked Bag

Shop(10) - 2nd Checked Bag

Shop(9) - 2nd Checked Bag

 

and so on.
It there a way to remove all of the Shop() values, and hyphens (leaving only 1st Checked Bag, 2nd Checked Bag, etc.), in one step?

Have been googling for a while now and can't seem to find an answer.

Tried something similar to this but no success yet, because it's not entirely correct, I'm sure - 

List.Transform([GL Charge Description], each Text.Contains((FindStrings[GL Charge Description]),-))

Any help is appreciated. Thanks 🙂

1 ACCEPTED SOLUTION
LearningBI1986
Frequent Visitor

Nevermind! I have it! Just simply split the column by number of characters!

View solution in original post

1 REPLY 1
LearningBI1986
Frequent Visitor

Nevermind! I have it! Just simply split the column by number of characters!

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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