Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculating Dates from all Related Records

Featured Replies

Hey Guys,

 

I have two tables "Projects" "Sub-Projects", each master projet has several subprojects attached to it linked by ID. Every one of these subprojects has a start and end date.

 

What I'd like a is two calculation fields in the projects table, "overall start date" and "overall end date"

 

-start date which looks through all of the start dates in the related subprojects and finds the earliest.

-end date which looks through all of the end dates in the related subprojets and finds the latest.

 

Any ideas how I would go about doing this ?

 

Ideally the dates are stored, but updated fairly regularly as subproject dates change quite regularly in the database.

 

Thanks in advance

 

James

Projects::overall start date = Min(Subprojects::start date)

Projects::overall end date = Max(Subprojects::end date)

 

Edit:  You may not want to display an overall end date until all sub projects are completed:

 

Projects::overall end date =

If(Count(Subprojects::id) = Count(Subprojects::end date); Max(Subprojects::end date; "")

Please update your profile by showing the Version of FileMaker, OS and Platform you are using. Here is a quick like My Profile to do this.

  • Author

Projects::overall start date = Min(Subprojects::start date)

Projects::overall end date = Max(Subprojects::end date)

 

Edit:  You may not want to display an overall end date until all sub projects are completed:

 

Projects::overall end date =

If(Count(Subprojects::id) = Count(Subprojects::end date); Max(Subprojects::end date; "")

 

Thanks for the quick response !

 

James

  • 3 weeks later...
  • Author

Just returning to this one:

 

I'd like to find the minimum date of all related records which have projects::status = "done"

 

Is there an easy way to do this ?

 

James

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.