In this video, I’ll walk you through an advanced Power Query case study where we’ll learn how to unpivot groups of columns and stack them one below the other. We’ll also add the main header as an extra column to keep things clear. We’ll solve this in five simple steps using the M language, keeping the process dynamic so it works with different datasets. If you’ve struggled with messy unpivoted group data, this tutorial will help you clean it up and make it usable.
Unpivot Multiple Column Groups Using M Language