Change Report Script to show Totals not all records

Change Report Script to show Totals not all records

Hi Guys,

I have the current script to generate a report:

  1. spreadsheet  Hours_Report_for_Wages_II
  2. {
  3.     displayname = "Hours Report for Wages (II)"
  4.     show  all  rows  from  Employee_Time_Sheet 
  5.     (
  6.         Name
  7.         Hours
  8.     )
  9.     filters 
  10.     (
  11.         Date_field
  12.         "Last Week Hours Only"  :  Date_field in last 7 days
  13.     )
  14.     group by
  15.     (
  16.         Name   ascending
  17.     )
  18. }

Can anyone help me with how I edit this script to the report only shows one row per Name and the total number of Hours recorded for them?

Thanks!