Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a calculated figure in my selection criteria 1

Status
Not open for further replies.

SamLN

Technical User
Apr 17, 2013
25
AU
Hi all
firstly I apologise in advance for my lack of crystal knowledge!

I am using crystal reports 2008 The purpose of the report is to find which employees have had more than 173.33 hours paid to them.

There may be anywhere from 1 row or data per employee to 50 rows per employee.

I need to sum all of the rows to get total hours per employee and then compare that to see if they are greater than 173.33.

my question is how to I get a selection criteria to work based on the sum of all records per employee, when the sum of records has not been completed at selection criteria time?.

TIA
Sam
 
I would start by Grouping on the Employee ID field. Then create a Group Selection Formula as follows (substituting the correct Table/Field names):

Code:
Sum({Table.HoursWorked}, {Table.EmployeeID}) > 173.33


Hope this help
Pete
 
thanks, that was very simple but worked very well.
Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top