Add subtotal feature for advanced reports