I'd be glad to help with your question about running reports in QuickBooks Online, Maria.
You just need to click the Collapse icon in the left-hand corner, just before the name of the account or line that you want to collapse.
I'll also share these articles with you for more guidance and reference in case you will need them when running reports:
I'd be glad to be your guide once again in case you need more help when looking for something in QBO. Just add a reply below or submit another question in the Community.