Steps :


1) Choose Stock Activity Listing - Summary by Stock

2) Clone the Report :- Stock Activity Listing - Summary by Stock

3) Create 3 GroupFooter, put the Total on the 3rd Group Footer which is base on the GroupHeader2 Condition for sum the total quantity.

4) Create Report Footer, put the GrandTotal  on Report Footer which is base on the Report Header Condition for sum the total quantity.