Hi everyone,
I’m building a financial dashboard in Looker Studio using a pivot table connected to a Google Sheet. My data structure looks like this:
- Each category has one row that contains a pre-calculated total
- Below that, the individual line items that make up that total are listed as detail rows
The problem:
- When expanded: everything looks correct — I can see the total row and the individual detail rows underneath it
- When collapsed: Looker Studio sums up the total row together with all the detail rows, resulting in double counting
This happens because Looker Studio applies SUM aggregation across all rows within a group, including my pre-calculated total row which already contains the summed value of all detail rows.
I want to keep this structure (pre-calculated totals + detail rows in the same dataset) but I need the collapsed view to only show the pre-calculated total value, not the sum of total + all detail rows.
Has anyone found a clean solution for this? I’ve considered using a level indicator column to filter on, but Looker Studio doesn’t seem to support dynamic filtering based on the expand/collapse state.
Any help is appreciated!