- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

split name surname in separate column
Hi, I went to the forum, but I have not found anything that suits my case.
I have a colum like this ( name and surname)
MARCO DI BENEDETTO
MICHELE DE ROBERTO
I'd like to split into 2 separate colum
name | surname |
MARCO | DI BENEDETTO |
MICHELE | DE ROBERTO |
If I split column by delimiters ( space) I obtain something wrong due to surname with 2 parts ( DI BENEDETTO)....
any idea is appreciated !
Thanks
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Otherwise you can use the macro Text before and after Delimiter from here
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Good function but don't separate correctly ;-/
If I use Text before delimiter on
MARCO DI BENEDETTO
I obtain
DI
instead of
DI BENEDETTO
😕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
see my solution in the pbi file
https://1drv.ms/u/s!Aj45jbu0mDVJi0TPmFFEFXXd-Zn1?e=BeuR8g
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Ciao Diego,
you can use this in Power Query:
For Surname
= Table.AddColumn(#"Inserted Text Length", "Text After Delimiter", each Text.AfterDelimiter([Name], " "), type text)
For Name
= Table.AddColumn(#"Removed Columns", "Text Before Delimiter", each Text.BeforeDelimiter([Name], " "), type text)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi, on Power query right click on the column, split by delimiter and then choose "Left-most delimiter". KLL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
This is my data:
You can create two calculated column:
Hope my answer could help you!
Ganger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Ehm, in your solution we lost part of surname (DI or DE), correct surnema is
DI BENEDETTO
DE ROBERTO
...that's my headache! 😉

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
06-05-2024 03:34 AM | |||
01-19-2024 01:01 PM | |||
05-26-2024 07:18 PM | |||
08-21-2024 12:59 AM | |||
06-09-2024 11:42 AM |