Forum

How to unpivot data
 
Notifications
Clear all

How to unpivot data

3 Posts
2 Users
0 Reactions
83 Views
(@brunomelki)
Posts: 46
Trusted Member
Topic starter
 

Hello,

I get a file from a data repository and it is not organized such a way I can "pivot table" it the way I need.

It have as many columns as years and the countries are in one column --> I receive a 64 X 265 table.

I want to transpose the data in order to get a 3 columns based table : countries, years and values such a way I will be able to plot the data with pivot table to get  the values in an y-axis and the date frame in the x-axis per countries. (Columns B, C and D should follow the transposition if possible if not, we can delete them).

How can I perform that transposition in excel ? xlsx file is attached.

 
Posted : 16/07/2020 9:02 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Bruno,

This is a job for Power Query, so I've moved your topic and edited the subject accordingly. You can use Power Query's Unpivot tool to fix the layout of columns E through BL. Note: you should select columns A:D and then 'Unpivot Other Columns'.

Mynda

 
Posted : 16/07/2020 7:26 pm
(@brunomelki)
Posts: 46
Trusted Member
Topic starter
 

Mynda ... impressive. Thank you!

 
Posted : 20/07/2020 3:58 am
Share: