I can share information about the report you'd like to pull up in QuickBooks Online (QBO).
Currently, the option to run Profit and Loss (P&L) with the actual, budget and comparative data from last year is unavailable. As a workaround, you can run two separate reports, such as P&L YTD Comparison and Budget vs. Actuals to get the details that you need.
Here's how to do it:
In QBO, go to the Reports menu on the left pane.
In the Business overview section, click P&L YTD Comparison and/or Budget vs. Actuals to open the report.