Custom Report Ticket wise

How can i have a sub total of ticket after each ticket in the following report

[Ticket wise Report:2,5,1, 2,2]

Ticket|Product|Qty|Amount|Total
{REPORT ORDER DETAILS:T.TicketNumber,O.MenuItemName,=N([O.Quantity]),O.Total,T.TotalAmount}