Jump to content
Server Maintenance This Week. ×

Summary field from 2 tables


tobbesfilemaker

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

Recommended Posts

I`ve got 3 tables, salesmen, orders and workingdays.

 

I want to make a report where the salesmen can see how much they`ve sold and how many hours they work sorted per month for example, but the problem is that how much they have sold is in one table and they`re working hours is in another table.

Link to comment
Share on other sites

Are you just wanting to calculate the total sales for the month, and the total hours for each salesperson on a given month?  Or, are you wanting to show a listing of all of the orders or workdays?   What does each row or record represent in your solution as you envision it?  

 

Here are a few suggestions:

1. From a layout representing the Salesperson table, you can place two portals:  One to Orders and one to Workingdays. Add a "start" and "end" as date global fields onto this layout and use it to filter the portals to the time range that you want. 

 

2. On the Salesperson table you can also create a calculated field, using the Sum( ) function that adds up the sale amount for the related Orders table that falls within the date range defined by "start" and "end", as above. You could do the same to sum the WorkingDays data on the Saleperson table.  

Link to comment
Share on other sites

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