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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
santu1021
Helper II
Helper II

remove suffix text......

Dear,

 

I have huge data with mixed of numbers and text. I want to remove all suffux text (like T,A, B etc) from the data. Suffix is not organised, some time only one Text, some time twice, 3 etc...

 

As - IsTo be
A205TA205
A205TMA205
A220TPA220
A220TOA220
A300AUA300
A300ARA300
A300BFFA300
A300BGGHA300
A300BIIA300
A300BRRA300
A300DSA300
A300DEA300
A300DFA300
A300DGA300
A300DHA300
A300DJA300
A300EKA300
A300EQA300
A770A770
A770KOA770
A770ABA770
A770GyyA770
A770GkA770

 

Santhosh

1 ACCEPTED SOLUTION

Thank you very much !!!!

View solution in original post

5 REPLIES 5
bfernandez
Resolver II
Resolver II

You can accomplish this by going into Power Query and Extracting the first characters; which is your case seems to be the first 4 characters.

 

In Power Query:

Extract.pngFirst Characters.png

Thank You !! I tired this option.

Sorry,  the count is mixed, it is not organised, I don't how many different varient count I have in data.

CT2535KE - CT2535

E55A-E55

E45RTYU -E45

 

Try this:

 

Split.png

Thank you very much !!!!

Glad I could help! Please mark the post as a solution to help others! 😁

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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