Group and Sub Group Report Issue

Hello

I have Report Generating from Sales Invoice Header and Sales Invoice Line

And I want Like Customer wise Ship to code wise Report

Getting Issue in totalling

Not getting how to do grouping and sub grouping

in navision.