Subtotal with grouping

Apr 20, 2016 at 2:56 AM
Edited Apr 20, 2016 at 2:56 AM

I have been trying to carry out subtotal with grouping (the way excel does it when we click on subtotal under data).

I tried going through sample 6, but it was a bit difficult to understand.

I have attached the screenshot for reference, the data that I would get from database would be dynamic.


Edit: The image isn't visible, here's the link: