Help

Re: Selecting earliest date among all related tasks

Solved
Jump to Solution
88 2
cancel
Showing results for 
Search instead for 
Did you mean: 
tylerc
4 - Data Explorer
4 - Data Explorer

I have a Projects grid and a Tasks grid.

The Projects grid has fields for Project name, start date, and end date. 

The Tasks grid has fields for Task name, start date, end date, and reference to the Project name.  

For each Project, I would like the start date to be the earliest Task start date among all the Tasks that reference that Project.

Similarly, I would like the end date of each Project to be the latest Task end date among all the Tasks that reference that Project. 

Thank you in advance for any help!!

  

1 Solution

Accepted Solutions
TheTimeSavingCo
18 - Pluto
18 - Pluto

Does this look right?

Screenshot 2024-12-17 at 10.46.38 PM.pngScreenshot 2024-12-17 at 10.46.44 PM.png

Link to base

'Start date' in Projects is a rollup field that grabs from the 'Start date' field in Tasks, same for end date.  You can duplicate the base to your own workspace to see how it's set up too

See Solution in Thread

6 Replies 6
ScottWorld
18 - Pluto
18 - Pluto

You can do that with 2 rollup fields in your Projects table.

Each rollup field would point to a date field in the Tasks table, and you would use one of these formulas:

MIN(values)
or
MAX(values)

- ScottWorld, Expert Airtable Consultant

Thank you for the response! I tried creating a "rollup" date field in the Projects grid, and then did rollup for all Start Dates in the Tasks grid. The trouble I ran into is that when I went to set a condition for which dates to rollup, I only saw a way to select a specific Project as the condition. In this case I have multiple Projects and need the rollup to be variable to each Project name. Am I missing a feature or is there a workaround? 

TheTimeSavingCo
18 - Pluto
18 - Pluto

Does this look right?

Screenshot 2024-12-17 at 10.46.38 PM.pngScreenshot 2024-12-17 at 10.46.44 PM.png

Link to base

'Start date' in Projects is a rollup field that grabs from the 'Start date' field in Tasks, same for end date.  You can duplicate the base to your own workspace to see how it's set up too

This looks correct! I was able to click into the base, but when I click the field to see how it's setup I can only "copy field URL". 

Yeap you'll need to duplicate the base to your own workspace!  To do that, click on the base name, followed by the three dots, then 'Duplicate base':

Screenshot 2024-12-17 at 11.18.21 PM.png

Thank you for all the help!