Forum Discussion
Help needed with unpivot Power Query Transform
- 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
5) Pivot over the Attribute.3 column
6) After that you can delete the unwanted columns and obtain your result.
Let me know if it works.
#I'M Not An Expert#
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.
- maracles10 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.