Forum Discussion
maracles
10 years agoResolver II
Help needed with unpivot Power Query Transform
I've attached a screenshot which I think explains everything. I have a data table (green) which I need to transpose/unpivot using power query (Get & Transfrom) so that I get the table seen below (blu...
- 10 years ago
Check your column "OrderID"
Unpivot others
Split your column "Attribute" by space at the rightmost delimiter
Check column "Attribute.2"
Replace null by Amount
Pivot on this column
ImkeF
10 years agoCommunity Champion
You're nearly there :-)
Now check the column "Attribute.2" and pivot on it.
Choose "Value" for the Value and no aggregates in the advanced options.
maracles
10 years agoResolver II
ImkeF Almost there! That gets me to this... how do I then merge the rows so that the 'Amount' and 'Date' for a particular Transaction are on the same row?
I'll try and solve it myself but thought I'd get the answer now in case you're not around if I fail!
Thanks for the help, the Pivot/Unpivot feature looks like it could be very useful.