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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

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

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.