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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Erika_S
Helper I
Helper I

Smartly Splitting Cells into Rows delimited by space

hi all,

Hope someone would be able to help me. What i am trying to do is split values in the cell into rows. But one more complexity is thae once i split it - it needs to depend on the next columns split value. Not sure i am explaining it well. Here is what data looks like: and bellow - how it would like it to look like. 

Splitting cells.PNG

I successfuly split cells to rows in powery query. But doesnt do it smartly... Comes back like this:Power query Split by space.PNG

 

Any advice would be very very very 🙂 helpful.

 

Thank you guys,

erika

3 REPLIES 3
HotChilli
Community Champion
Community Champion

There was a similar challenge on excelguru website just  a few days ago.

Have a look here

https://www.excelguru.ca/blog/2019/08/01/solutions-for-power-query-challenge-6/

 

and solutions

https://www.excelguru.ca/blog/2019/08/01/solutions-for-power-query-challenge-6/

 

Basically there are two solutions(one that can be done with point and click and one that requires deeper M knowledge)

The point and click one splits the column on linefeed character then filters out unwanted rows

Thank you definately useful tips, but it didnt work for my file. Could not pass through the step of Grouping it by. Some more screenshots would be really helpful... 

 

It just kept saying cant group as it cant convert one of the values... Could the issue be that there are extra blank lines in the cell? But i just remove those as "remove empty".

 

Sorry if it seems a simple task, but i really struggle to make this one work and it is very important report to. Im sure it should be possible to not do it manualy? 🙂

Please post your data(not a picture) or pbix.  and can you tell me which of the solutions you tried?

 

It's not a simple task

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.