Forum Discussion
Putting last string element from a column into a new column
- 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
- 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.
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
- Anonymous5 years agoNot applicable
Thank you for your response !
The brackets and quotation marks are indeed part of the column (my data is an imported csv).
Could you please show me where I should enter this line of code ? I have tried to add it when creating a new column (I go to Modeling then to New Column) but it doesn't seem to be DAX syntax.
Thank you,
Louise