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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Harvey85
Helper I
Helper I

Extract Value from Field

Hi, I have a question. I have a field called Season where I need to keep the text before the numbers at the end (2123, 2223, etc., in the future new numbers of these characteristics may appear, always with 4 numbers at the end).

 

And the expected output is in the second column. How can I get it? Thank you!!

 

SeasonExpected Output
Abc 2123Abc
Def 2123Def
Abc 2223Abc
Def 2223Def
Abc 2 2123Abc 2
Def 2 2223Def 2
Ghi 1 2324Ghi 1
Ghi 2 2425Ghi 2

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

There are lots of ways in power query to do this.

Example-> Split Column by delimiter (using 'space' as far right as possible)

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

There are lots of ways in power query to do this.

Example-> Split Column by delimiter (using 'space' as far right as possible)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.