Posting the pic for better answer.
As you can see the report is grouped by week then Dept then Employee ID. The second column is subtotal of the employee hours for the whole week. I used the function for the third column to calculate the over time which is
If sum({employee.payhour}, “weekly”)>40 then (sum({employee.payhour}, “weekly”)-40)
Else sum({employee.payhour}, “weekly”)
Now I need to do the subtotal by dept. calculating the employee.payhour was easy and used the built-in subtotal function. The overtime is not even an option there. So first thing I did was write another function sum(@overtime, “employee.dept”) it gave me a error stating the running total cannot be calculated. When I looked at the option for running total @overtime is not even listed there either. Can somebody tell me how can I get the subtotal of overtime by dept.
As you can see the report is grouped by week then Dept then Employee ID. The second column is subtotal of the employee hours for the whole week. I used the function for the third column to calculate the over time which is
If sum({employee.payhour}, “weekly”)>40 then (sum({employee.payhour}, “weekly”)-40)
Else sum({employee.payhour}, “weekly”)
Now I need to do the subtotal by dept. calculating the employee.payhour was easy and used the built-in subtotal function. The overtime is not even an option there. So first thing I did was write another function sum(@overtime, “employee.dept”) it gave me a error stating the running total cannot be calculated. When I looked at the option for running total @overtime is not even listed there either. Can somebody tell me how can I get the subtotal of overtime by dept.