Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Putting last string element from a column into a new column

Hello,  I woud like to create a new column in Power BI desktop that it based on another column in my data.  The new column should only take the last string element of the previous column. For examp...
  • mahoneypat's avatar
    5 years ago

    Not sure if you string actually includes the [ and ' symbols, but you can use this formula in a custom column.  If you do need those characters, you can concatenate them to the result (or use Replace Values to remove them before or after this step).

     

    = List.Last(Text.Split([ListColumn], ", "))

     

     

    Pat

     

     

  • V-lianl-msft's avatar
    5 years ago

    Hi Anonymous ,

     

    Please try using the extract function in the query editor.

     

     


    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.