I have a table in Power Query that I'm trying to rearrange. The original table looks like this:
I want to rearrange it to look like:
I would appreciate any help in solving this issue. Thanks in advance!
Sara
I have noticed that if I want my desired result it would be looks like below in power query:



Given this as a starting table:
In PowerQuery, you will need to add a new Custom Column for "time" taking the last column name for the value (eg 2020). Then Pivot Column on
indicators\TIME_PERIODand2020(ie the previous last column).This will give you a table like so:
Here's the full PowerQuery of the above:
I would recommend leaving the structure like this, as you can then add (append) other similar tables together, to give you the one table of data.
Regarding the presentation, again I would recommend tackling this in Excel and not PowerQuery. Keep your PowerQuery table as above, then once loaded in Excel, your can add a reference to the
productcolumn and then hide that column.