Retained earnings is the revenue for the reporting financial year plus any revenue from past financial years less any dividends that have been distributed. So yes, retained earnings includes revenue but not only the revenue for this year. Retained earnings is a reserve where the profits and the losses are included and which is used to pay dividends out of.