We have a crystal report for OT by person. The report is run for one
week at a time.
The report groups and subtotals hours by each employee.
It is a multi-column report with the columns being: direct labor,
indirect labor, vacation. holiday, OT.
Each column subtotals by group, company, employee pay type (hrly or
salaried) with the exception of OT, that is a calculated field.
Here is the formula used for the field called @OT:
if {empbasic.shortchar02} = "HOURLY"
then
if Sum ({labordtl.laborhrs}, {labordtl.employeenum})-Sum ({@Vac},
{labordtl.employeenum}) > 40
then Sum ({labordtl.laborhrs}, {labordtl.employeenum})-Sum ({@Vac},
{labordtl.employeenum})-40
else 0
else 0
The report works great if run weekly. Note: we do not pay overtime for
vacation hours.
Pam
Metro
________________________________
From:
vantage@yahoogroups.com [mailto:
vantage@yahoogroups.com] On Behalf
Of Scott Litzau
Sent: Wednesday, May 28, 2008 1:44 PM
To:
vantage@yahoogroups.com
Subject: RE: [Vantage] Crystal Report LaborOT Report
Don,
Have you tried using a Running Total for the field you are trying to sum
and
then use a formula on when to Evaluate the value.
Scott Litzau, MCP
Olympus Flag & Banner
Information Systems Manager
scott.litzau@... <mailto:scott.litzau%40olympus-flag.com>
P: 414-365-9732
F: 414-355-1931
-----Original Message-----
From:
vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:
vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Don Kollmann
Sent: Wednesday, May 28, 2008 11:22 AM
To:
vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Crystal Report LaborOT Report
Hi Everyone,
I have been working on this labor overtime report and the challenge I am
having is to subtotal a group formula based on a criteria type
My report is calculating Ot after the sum of payhours - 40 that is what
is making it difficult to subtotal I can do the formula for each
employee
I just cannot get it to sum correctly based on criteria.
I would like to sum this report by plant and department and have grand
totals for each company.
Thank you in advance for your help
Don
<
http://geo.yahoo.com/serv?s=97359714/grpId=20369/grpspId=1705007183/msg
<
http://geo.yahoo.com/serv?s=97359714/grpId=20369/grpspId=1705007183/msg
>
Id=65265/stime=1211990478/nc1=4507179/nc2=5349273/nc3=5370602>
[Non-text portions of this message have been removed]
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<
http://groups.yahoo.com/group/vantage/files/.>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
<
http://groups.yahoo.com/group/vantage/messages>
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo
<
http://groups.yahoo.com/group/vantage/linksYahoo> ! Groups Links
[Non-text portions of this message have been removed]