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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
anabianco09
Helper II
Helper II

How to erase more than one character in columns

Hi all, I am trying to erase some characters in a column if they start with the specific letters: PCE-

anabianco09_0-1695912252884.png

And then I'd keep only the numbers after the -

How can I easily automate that for everytime the data is refreshed?

 

 

Thanks

 

 

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@anabianco09 ,

In Power Query, create a new custom column like this:

rsbin_0-1695923538556.png

Power Query has a number of different text functions available to manipulate your raw data.

Hope this helps.

Regards,

View solution in original post

2 REPLIES 2
rsbin
Super User
Super User

@anabianco09 ,

In Power Query, create a new custom column like this:

rsbin_0-1695923538556.png

Power Query has a number of different text functions available to manipulate your raw data.

Hope this helps.

Regards,

That worked perfectly! Thanks @rsbin !!

Helpful resources

Announcements
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.

May 2025 Monthly Update

Fabric Community Update - May 2025

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