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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mweber87
Helper I
Helper I

Splitting column details

mweber87_0-1667406750901.png

I have this data set. There are different types of pizzas. There is a column that is labeled ingredients. And each row lists all the ingredients for that pizza on one line. Example 

bbq_cknThe Barbecue Chicken PizzaChickenBarbecued Chicken, Red Peppers, Green Peppers, Tomatoes, Red Onions, Barbecue Sauce

 

However, I would like to seperate the ingredients so they show up on different rows. For example:

pizza_type_idnamecategoryingredients
bbq_cknThe Barbecue Chicken PizzaChickenBarbecued Chicken
bbq_cknThe Barbecue Chicken PizzaChickenRed Peppers
bbq_cknThe Barbecue Chicken PizzaChickenGreen Peppers
bbq_cknThe Barbecue Chicken PizzaChickenTomatoes
bbq_cknThe Barbecue Chicken PizzaChickenRed Onion
bbq_cknThe Barbecue Chicken PizzaChickenBarbecued Sauce

 

I am new to Power Bi and DAX so any help would be greatly apprecaited!

2 ACCEPTED SOLUTIONS
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @mweber87 - There is a Split Column by Delimiter option in Power Query that will help.  Please watch the following example:  Power Query - Split a cell into rows | Get delimited lists into a usable format | Excel Off The Grid...

Many thanks

Daryl

View solution in original post

ImkeF
Community Champion
Community Champion

Hi @mweber87 ,
check the column, go to the transform tab, choose "Split Column", use "Comma" as a delimiter, expand the Advanced options and select "Rows":

ImkeF_0-1667408280501.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

4 REPLIES 4
ImkeF
Community Champion
Community Champion

Sound like you want to pivot on the new "ingredients"-column?
Not sure what you want to see in the columns with the ingredients actually?

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

ImkeF
Community Champion
Community Champion

Hi @mweber87 ,
check the column, go to the transform tab, choose "Split Column", use "Comma" as a delimiter, expand the Advanced options and select "Rows":

ImkeF_0-1667408280501.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Yes thank you, @ImkeF  that worked! Is there now a way for me to create a list for all the pizza's that use each ingredient?

Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @mweber87 - There is a Split Column by Delimiter option in Power Query that will help.  Please watch the following example:  Power Query - Split a cell into rows | Get delimited lists into a usable format | Excel Off The Grid...

Many thanks

Daryl

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors