Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joooffice
Helper I
Helper I

Split column by word

Hi,

 

I have a column containing the names of parents and children merged together that i would like to split into the child and parents names. The split should come before the 'son of' or 'daughter of' but because the number of characters before and after changes and there may or may not be a space between first name and surname before son/daughter I can't split by delimeter. If I have the first name and surname of the child before the son/daughter I need to the keep the whole name so taking just the first word wouldnt work either.

 

Ideally I want to define " "&"son" as my delimeter but I can't work out how to do this (or even just "son" and then I could trim the extra space)

 

Thanks

 

Joe Bloggs son of Dave
Angela Bloggs daughter of Sue
Jack son of Bob
Jason Smith son of Barbara Smith
Claire daughter of Jon
1 ACCEPTED SOLUTION
Anonymous
Not applicable

try this:

 

Table.SplitColumn(#"Changed Type", "Column1", Splitter.SplitTextByAnyDelimiter({"son of","daughter of"}, QuoteStyle.Csv), {"children", "parent"})

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

try this:

 

Table.SplitColumn(#"Changed Type", "Column1", Splitter.SplitTextByAnyDelimiter({"son of","daughter of"}, QuoteStyle.Csv), {"children", "parent"})

 

 

Thanks, so obvious now you've shown me!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors