I'm new to using Excel/DAX.
Just wondering if there would be a quicker way to format the table:
What I'm trying to achieve, is getting the table 1 to be formatted the same as table 2
Notice how in table 2, there is only 1 column for the year. I understand that this creates duplications of the countries in the first column
Any advice would really help.
CodePudding user response:
- Load the table into PowerQuery
- Select the first 2 columns
- In the Transform tab select from Unpivot other columns
- There you go!
Btw, it's a typical ETL step (hence PowerQuery) called stacking a table from wide to long.