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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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