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
laurahoff97
Frequent Visitor

Turn column with commas into multiple rows

I have a dataset that I need to transform in powerbi, but I am unsure of the right commands to get it how I want. 

 

Below is an example of how my data currently looks. However I want to take the row IT Owners and make a separate row for each of the names that holds all the values from the other columns

IT OwnersCompany CodeManagerExecutive OwnerTags
Nick, Coach, Winston12SchmidtJessVendor1
Jake, Amy11HoltKevinVendor 1, Vendor 2
Michael, Jim, Pam, Dwight15JanDavidVendor 2
Andy, Donna, April21LeslieRonVendor 1, Vendor 3

 

I want it to look like this in the end:

IT OwnersCompany CodeManagerExecutive OwnerTags
Nick12SchmidtJessVendor1
Coach12SchmidtJessVendor1
Winston12SchmidtJessVendor1
Jake11HoltKevinVendor1, Vendor2
Amy11HoltKevinVendor1, Vendor2
Michael15JanDavidVendor2
Jim15JanDavidVendor2
Pam15JanDavidVendor2
Dwight15JanDavidVendor2
Andy21LeslieRonVendor1, Vendor3
Donna21LeslieRonVendor1, Vendor3
April21LeslieRonVendor1, Vendor3

 

 

Any help would be appreciated!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @laurahoff97 ,

 

For this you just need to use the split rows by delimiter and select the option rows on the the advance:

MFelix_0-1744729545167.pngMFelix_1-1744729562490.png

 

MFelix_2-1744729570429.png

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
laurahoff97
Frequent Visitor

laurahoff97_0-1744729812075.png

Using split by delimiter and into row seemed to work easier

MFelix
Super User
Super User

Hi @laurahoff97 ,

 

For this you just need to use the split rows by delimiter and select the option rows on the the advance:

MFelix_0-1744729545167.pngMFelix_1-1744729562490.png

 

MFelix_2-1744729570429.png

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Cookistador
Super User
Super User

Hi @laurahoff97 

The easiest way to achieve that is to create a new table in Power query(reference of your existing table)
Delete all rows except IT owner and Company Code

Split IT Owner by delimiter: ,

Select Company Code and Unpivot other column

Remove Attribute column

You should get something like that:

Cookistador_0-1744729366931.png

 

 

Then you close and apply you link your new table to the previous one

Once your two tables are linked (via Company Code), you create  a table, take IT owner from the new table and other fields from the previous one

 

Cookistador_1-1744729609590.png

 

this is the code I used in Power Query

let
    Source = ITTable,
    #"Removed Columns" = Table.RemoveColumns(Source,{"Manager", "Executive Owner", "Tags"}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Removed Columns", "IT Owners", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), {"IT Owners.1", "IT Owners.2", "IT Owners.3", "IT Owners.4"}),
    #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"IT Owners.1", type text}, {"IT Owners.2", type text}, {"IT Owners.3", type text}, {"IT Owners.4", type text}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Company Code"}, "Attribute", "Value"),
    #"Removed Columns1" = Table.RemoveColumns(#"Unpivoted Other Columns",{"Attribute"})
in
    #"Removed Columns1"

 

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.