Forum Discussion

Harvey85's avatar
Harvey85
Icon for Helper I rankHelper I
2 years ago
Solved

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

 

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

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

1 Reply

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

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

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