Hi everyone,
I’m encountering some challenges with defining a rollup field that combines data from three tables in Airtable. Here’s the setup:
- Buildings (fields: name, etc.)
- Employees (fields: name, hourly_rate, etc.)
- Timesheet (fields: employee_name, building_name, day, hours, etc.)
I want to create a view that summarizes the total salary for each employee in each building. The view should include the following fields:
- employee_name
- building_name
- total_salary
The total_salary should be calculated as follows:
- Employee.hourly_rate * (sum of all hours in the Timesheet where building_name matches the building in the view).
Can anyone provide guidance on how to set up these rollup fields and calculations to achieve this view?
Thanks in advance for your help!