Forum Discussion
michaelterenzi
Oct 03, 2022Copper Contributor
Need to Transpose Countries over Years, For Each Country List All Year Values
Hi. Basically I have data that looks like this: 1996 1998 2000 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 ABW...
alannavarro
Oct 04, 2022Iron Contributor
I´m not sure if this is what you need.. attached is an example and how to do it.
1.- First transform to a table your data.
2.- Then Data > From Table / Range
3.- Inside the power query editor , First select the Country Column > then go to Transfrom > Unpivot other columns.
4.- You are going to have error because of the N/A.
Select the Column Value > Transform > Replace Errors > (then replace for 0)
5.- Go to Home > Close & Load
*If you want to refresh the data, just go to Data > Refresh all like a pivot table.