If you only want to show the sub totals and not the individual records, remove the body layout part from the layout.
That would mean I would have to have two different layouts for different purposes. Is there no collapsing feature in filemaker?
There is not. But you might be able to creatively replace the body with a sub summary layout part. You could use a Primary key field as the "when sorted by" field, for example.
Then, when you include the primary key field as the last field listed in the sort order, you see the detail row. When you omit it from the sort order, the detail row disappears.