The International Renewable Energy Agency recently released its Renewable Energy Statistics 2022 dataset. This provides datasets on power-generation capacity for 2012-2021, actual power generation for 2012-2020 and renewable energy balances for over 150 countries and areas for 2019-2020.
Data was obtained from a variety of sources, including an IRENA questionnaire, official national statistics, industry association reports, consultant reports and news articles. The yearbook also includes statistics on investments in renewables, compiled from the OECD-DAC database and 20 major multi-lateral, bilateral and national development financial institutions, spanning 2011-2020.
Download the complete dataset here