Of course things like base load generation and you know...night time need to be taken into consideration, but I think it really puts it all into perspective. A few more years at their current growth, and renewables will be generating more electricity than coal globally. Coal is also decreasing which helps.
I used some data from here to make rough estimates:
https://www.iea.org/statistics/electricity/
I did this to make myself a little less depressed about global warming. Fight for renewables in your towns!
edit: oh yah, that would cost $26 Trillion...but that's for ONLY solar panels which isn't practical.