December 3, 200223 yr 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
Create an account or sign in to comment