Hi there,
Welcome to the Community. QuickBooks offers a variety of reports that help you bring your finances into perspective with ease. I'll be happy to share more info so you can continue to do the things you enjoy.
In order to view the prior years profit and loss recommend running the Profit and Loss report from your Reports menu in QuickBooks. You can then filter this report In case you need to customize/filter the report, here's an article that shows you how to do that. For reference, I also encourage you to check out this article here that goes over the: Reports included in your QuickBooks Online subscription.
Let me know if this info helps. I'll be one message away in case you need further assistance. Otherwise, I wish you a great rest of the week.