Power Query: Stacking Columns of Data (Unpivot, Split Columns by delimiter, and everything!) @OzduSoleilDATA
Power Query: Stacking Columns of Data (Unpivot, Split Columns by delimiter, and everything!)  @OzduSoleilDATA
Uploaded April 2017 | Updated November 2026, 2 days ago
This was interesting, and the solution is sweet.

We've got headers and a large number of paired columns that need to be condensed down to just 2 columns.

This was a real challenge that was recently presented to me. It was overwhelming, and I searched for existing solutions. The search turned up complex methods that got into M code or complex processes of peeling the data apart and then putting it back together.

But I thought of a simpler way. First ...
In my last video I described how to use a small, nonsensical model to focus on a solution. So, I built a model.

(the previous video: youtu.be/WkOR6telzdA)

Second. The small model revealed that the last step in our solution should be an UnPivot. Thus, an intermediate step need to be something that looks like it needs to be unpivoted.

Therefore, the trick is in getting the data set up right in Excel BEFORE taking it into Power Query (Get and Transform)!!!

It was so sweet to see how simple the solution was ... after seeing it as a very small model.

Check it out!



Contact me: oz1.depot@gmail.com


Website: ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336

My old blog: datascopic.net/blog-2-2
Power Query: Stacking Columns of Data (Unpivot, Split Columns by delimiter, and everything!)Excel Discussion: The hard way or the concise way?Running Totals in Excels Power Query: the easy way8 Warnings about Excel Wolfram Data Types | Linked Data Types | Excel Rich Data TypesNETWORKDAYS Function | Calculating Net Work Days in Power Query | Weirdness & WarningsThe Majesty of DUPLICATE QUERY in Power QueryOctopus Spreadsheets, Asking for Help and Conceptual ThinkingCOUNTA: An overdue celebration of one of Excels best functionsMr. Excel SSN Challenge: Import last 4 of SSN | Process vs. Formula | Dynamic Arrays & Power QueryPower Query: Import from PDF (2 Examples)Excel: Importing data from an imageSum variable and custom ranges with XLOOKUP: the Victor Momoh Edition
Excel On Fire (Oz du Soleil) |

Power Query: Stacking Columns of Data (Unpivot, Split Columns by delimiter, and everything!)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER