Forum Discussion
Pivoting in PQ
- 5 years ago
If you don't want to write long M Queries then you can follow simple steps with the Power Query GUI.
The fisrt table is already created so I won't highlight it.
For the second one, you may select both Qty & Volume columns and in Power Query go to Transform --> Unpivot.
Select your date column and change it to Text
Then Select the Date and Attribute columns, right click any of them then Merge Columns them
Then Pivot the Merged column on the value field
If you don't want to write long M Queries then you can follow simple steps with the Power Query GUI.
The fisrt table is already created so I won't highlight it.
For the second one, you may select both Qty & Volume columns and in Power Query go to Transform --> Unpivot.
Select your date column and change it to Text
Then Select the Date and Attribute columns, right click any of them then Merge Columns them
Then Pivot the Merged column on the value field
Wow this is some voodoo magic right there, thanks!