INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Regular and overtime

Regular and overtime

(OP)
I need to create a payroll report that separates employees' hours into regular and overtime.
The employees go out on service jobs (dispatches). Each dispatch will have a start and end time. I've already calculated the number of hours for each dispatch. For example, 3.50 hours. Regular time is the number of hours prior to 40 hours in a week. Overtime is the remainder in a week. Some employees work less than 40 hours. A dispatch can have hours in both categories if the prior dispatch was just under 40 hours.
I've grouped the data by employee and week and sorted it by date. I have a formula field, runtot, that accumulates the hours. All would be great if I could use the previous function to get the previous running total for each dispatch. Crystal won't allow it. Not sure why.
I suspect that the solution would be to create an array, but that eludes me.

Any help would be appreciated.

Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
www.hammerman.com

RE: Regular and overtime

I'm not clear on how this would be structured. Are you trying to get to something like this:

Jimmy Day Reg OT
Monday 10
Tuesday 11
Wednesday 10
Thusrday 9 1
Friday 0 10

RE: Regular and overtime

(OP)
I believe that I've figured it out.

Emp date hours reg ot
1 1-Sep 8 8 0
1 2-Sep 8 8 0
1 3-Sep 10 10 0
1 4-Sep 10 10 0
1 5-Sep 8 4 4
1 6-Sep 4 0 4


Note that on 9/5 the hours were split between regular and overtime and that on 9/6 all the hours went to overtime.
I did a test on the running total and was able to split between the two types of time.

Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
www.hammerman.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close