Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Summary based on multi-field relationship


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

Recommended Posts

Posted

Hi,

I have an Employee file (EmpID as primary key) and Attendance file (EmpID as foreign key). The Attendace contains LogDate {date}, LeaveType {text}, and LeaveCount {number} fields. What i want to do is to display in Employee file total of LeaveCount per year per LeaveType in each employee record (browse mode).

I've tried creating a relationship using calc multi-field combination of EmpID, Year {from LogDate}, and LeaveType in both files but i can't get the right output.

Any help?

Posted

I would make a calc field:

cEmpIDYearLeave = EmpID & Year(LogDate) & LeaveType

Then make a selfjoin relationship "sjEmpIDYearLeave" using this field.

Finally make a calc field :(

cLeaveCount = Count(sjEmpIDYearLeave::cEmpIDYearLeave)

This topic is 7765 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.