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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
FabvE
Helper I
Helper I

Split rows into nested list

Hi,

this might be an easy task but I'm struggeling the whole morning with this.

In my table I have a column [Owners] which contains a string of emails separated by comma.

I want to convert these emails per row into nested lists within the same column (no extra column).

 

I already tried Text.SplitAny in combination with Table.TransformRows etc. but only get errors...

 

Maybe you can help? 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @FabvE ,

 

Thanks for @Uzi2019 and @rajendraongole1 reply.

 

@FabvE Do you want to change value of Owner column to List without adding custom column? If so, you can try this.

= Table.TransformColumns(#"Changed Type",{ "Owner" , each Text.Split(_,",") } )

vmengmlimsft_0-1731050041855.png

vmengmlimsft_1-1731050060907.png

vmengmlimsft_2-1731050120970.png

 

 

 

Best regards,

Mengmeng Li

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @FabvE ,

 

Thanks for @Uzi2019 and @rajendraongole1 reply.

 

@FabvE Do you want to change value of Owner column to List without adding custom column? If so, you can try this.

= Table.TransformColumns(#"Changed Type",{ "Owner" , each Text.Split(_,",") } )

vmengmlimsft_0-1731050041855.png

vmengmlimsft_1-1731050060907.png

vmengmlimsft_2-1731050120970.png

 

 

 

Best regards,

Mengmeng Li

Uzi2019
Community Champion
Community Champion

Hi @FabvE 

 

Check my solution 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Community Champion
Community Champion

Hi @FabvE 

 

Check these steps:

 

I created similar scenario , this is my data with comma seperated.

 

Uzi2019_0-1730804903051.png

 

1) Go to power query

2) select your owner column

3) go to transform tab

4) split column

 

Uzi2019_1-1730805033799.png

 

5) select by delimiter

6) select comma seperator then go to advance setting select row > ok

Uzi2019_2-1730805115300.png

 

 

Uzi2019_3-1730805146525.png

 

check the result are in seperate rows not in columns.

 

I hope i answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
rajendraongole1
Super User
Super User

Hi @FabvE - Certainly! It sounds like you want each cell in the [Owners] column to contain a list of emails (instead of a single comma-separated string)

Select the column [Owners] and go to the Add Column tab.

Choose Custom Column, and in the dialog box that appears, use the following M code

= Text.Split([Owners], ",")

Sometimes emails separated by commas have extra spaces, which can interfere with your list format.

= List.Transform(Text.Split([Owners], ","), each Text.Trim(_))

 

Once done, select Close & Apply to load your transformed data back into Power BI.

 

Hope this works.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





HI,

thank you but this creates another column. Is there a way to transform the original column without creating an additional one?
I want to avoid unnecessary steps in my query. 🙂

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.