Excel export - expansion from custom view

In a custom view we have multiple rows of data with subtotals down the left hand side that can be expanded. How do we maintain the subtotals and expansion option when download to excel? The download just shows all the data and not the format of the report we’re viewing in Pocus. When downloading from a P&L in Financial Statements, you get the ability to expand / collapse in excel. How do we export to excel from other modes and also get this ability? Many thanks