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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.