Solve Logic for GroupSubTotal Case