To find this window
Analyze Profit & Loss window - Ledger view
In the Reports menu, choose Analysis; then in the submenu, choose Analyze Profit & Loss.
To find the Analyze Profit & Loss window - Ledger view