Hi All,
Please refer to the attached flow where the subtotals and grandtotals are calculated for every 'Dept'.
Now I need to enhance the flow to accomodate filtering based on the column 'Sub-Dept'.
Eventually all columns in the dataset should be filterable and grandtotal should always be shown based on the selection. The subtotals work as expected.
Do let me know on any questions.

Actually grand totals are in the Null 'Sub-Dept'
Thanks