Use the Sum(fld,condFld,cond) function under the Summary folder in the functions list.
Inside the brackets insert the field you wish to sum in 1st, then the field that contains the information you want to sum on, and then insert the value in your conditional field where you want the sum to occur. Cheers
Marc