I still have trouble figuring out variables! I am using CR 9.0 and SQL 2000.
I have a group1=Dept and Group 2 =Employee. My only time field is totalhours. So to get the regular hours I have a formula that says:
if Sum ({table.totalHours}, {table.Employee})>= 40
then 40 else Sum ({table.totalHours}, {table.Employee}) and put this formula in the GF2.
To get the overtime hours my formula says: (Sum(table.totalHours)) - (regularhours) and put this formula in GF2 also.
Now I need to get the total of the regular hours and OT hours for the GF1 Dept total. I assume that I need to use variables for this, but I can't get it to work.
Thanks for any help.
I have a group1=Dept and Group 2 =Employee. My only time field is totalhours. So to get the regular hours I have a formula that says:
if Sum ({table.totalHours}, {table.Employee})>= 40
then 40 else Sum ({table.totalHours}, {table.Employee}) and put this formula in the GF2.
To get the overtime hours my formula says: (Sum(table.totalHours)) - (regularhours) and put this formula in GF2 also.
Now I need to get the total of the regular hours and OT hours for the GF1 Dept total. I assume that I need to use variables for this, but I can't get it to work.
Thanks for any help.