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
maracles
10 years agoResolver II
Anonymous
Thank you very much for the effort and useful diagrams. I ahve tried following those steps but when I pivot the Attribute 2 column in the way you describe I don't get the table that you show afterwards, instead I get this:
Any ideas?
Thanks.
maracles
10 years agoResolver II
Thanks, I got it to work using your 'Split Columns' and using a value of 3 instead of 14, and then continuing from there. Much appreciated.
- ImkeF10 years agoCommunity Champion
Sorry, yes - the changed split-operation meant that a blank space has sneaked in. So the other solution would have been to Trim the Attribute.1-column before pivoting.