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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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