Jump to content

Summarize data between three tables


Scott Pon

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

Recommended Posts

I'm trying to summarize the amount of training hours for a specific department.  I have 3 tables. 

Table1: List of people.  Fields: Personnel Key, Person name, department Number

Table2: List of Training.  Fields: Date of training, number of hours, Personnel Key (from the Date, I get the Year and Month)  

Table3: List of Year/Month.  This is where my calculations should display.  I have a field for Month and Field for Year. 

Relationship #1: Table1::Personnel_Key = Table2::Personnel_Key

Relationship #2: Table3::Year = Table2:Year, and Table3::Month = Table2::Month

In Table3, I want to get a total of Table2::Number of Hours for Department 1.  I created a field that will "Sum (Table2:Number of Hours)" but that will return ALL hours. How do I filter the hours in Table2 on Table1::Department Number = 1?

Thanks.

Link to comment
Share on other sites

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