Uttar Pradesh, which is ramping up its renewable energy capacity, is likely to get an investment of almost Rs 40,000 crore in the next couple of years.