Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Calc for counting the # Of Employees Working...


This topic is 7943 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

This topic is 7943 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.