Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Running Total Post Reply Post New Topic
Author Message
4milligans
Newbie
Newbie


Joined: 21 Jul 2009
Online Status: Offline
Posts: 8
Quote 4milligans Replybullet Topic: Running Total
    Posted: 25 Oct 2010 at 8:40am
I've looked for guidence here before, but couldn't get my running total to work.
 
Problem:  I need to be able to capture 2 weeks worth of pay roll data, but only calculate over time 1 week at a time.  Right now, I run 2 separate reports.  One calculating the first week of the pay period and the second for the second week.  I export these two reports into Excel, sort them by associate and then subtotal the hours.  We pay overtime if an associate works more than 40 hours per week, I know there's a way...just can't figure it out!  HELP :)
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Oct 2010 at 9:30am

what is your raw row level data like?

IP IP Logged
4milligans
Newbie
Newbie


Joined: 21 Jul 2009
Online Status: Offline
Posts: 8
Quote 4milligans Replybullet Posted: 27 Oct 2010 at 9:18am
I have the data in Group Header 2 (by name) and it holds the following:
 
BU (business unit)
PR ID (pay roll ID)
Full Name
@REG HRS
@OT HRS
@VAC HRS
 
 
REG HRS Formula:
if ({@OT HRS}>0.00) then
(sum ({@NON PTO HOURS},{PUNCH.EMPLOYEE ID}) - {@OT HRS})
else (sum ({@NON PTO HOURS},{PUNCH.EMPLOYEE ID}))
 
OT HRS Formula:
if sum({PUNCH.DEPT HOURS},{PUNCH.EMPLOYEE ID})> 40.00
then sum({PUNCH.DEPT HOURS},{PUNCH.EMPLOYEE ID}) - 40.00
else 0
 
VAC HRS Formula:
IF {PUNCH.NONWORKED} = "Vac"
THEN
{PUNCH.DEPT HOURS}
else 0.00
 
I realize the way the OT formula is written that it's only going to calculate OT based on a 40 hour week.  I would really like to rewrite that based on the running total of hours per week - make sense?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.