LiveOak Posted December 3, 2002 Posted December 3, 2002 Q: How many employees work here? A: About half. Create a fields: EmpDayKey (calculation, text, stored, indexed, ASCII) = EmployeeID & "-" & Date RecordID (calculation, number, indexed) = Status(CurrentRecordID) Create a self-relationship: "Self by EmpDayKey" Relate YourFile to YourFile with EmpDayKey matching EmpDayKey Create a field: AttendanceFlag (calculation, number) = RecordID = Min(Self by EmpDayKey::RecordID) <-- no "If" is needed, this evaluates as true or false (0 or 1). Finally, just add up the AttendanceFlag fields for the day(s) you wish to check attendance. This can be done by defining a summary field and or using the Sum() function in a calculation based upon another relationship which provides the date range selection. -bd
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now