The staggering drop in the cost of clean energy has already upended the global power market over the past two decades — and that trend will only continue for the next two decades, according to new analysis from Bloomberg New Energy Finance (BNEF).

As a result, renewables will capture the lion’s share of the $10.2 trillion the world will invest in new power generation by 2040, BNEF projects in its annual New Energy Outlook 2017 report.