Hi, I've been unsuccessful at un-pivoting a table. I've searched for some solutions already, and have downloaded some examples, but I'm no closer to a solution.
I think this is a combination of transpose, crosstab and dynamic rename but...I need some help!
My data looks like this:
id | year | population
a | 2020 | 10000
a | 2019 | 9999
b | 2020 | 20000
b | 2019 | 19999
Ideal output
id | population_2019 | population_2020
a | 9999 | 10000
b | 19999 | 20000
Best Regards,
Allan