Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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 example:
If one row in the column contains: ['Elsa', 'William', 'Kate'], the new column should only contain: ['Kate'] in the corresponding row.
All rows don't have the same amount of string elements (i.e. some have 4 names and some none at all).
I would be very grateful if anyone could help me solve this,
Thank you,
Louise
Solved! Go to Solution.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |