Jump 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.

Date Calculation (Easy One)

Featured Replies

Please how do I get this calculation to look at the last entered date and not the first? It's just a list of dates that people have attended and all I want it to show is the amount of days since last attended.

Get ( CurrentDate ) - Attendance_Date

Many Thanks

"It's just a list of dates..."

You mean that all of the dates are entered into one field? If so, then that's the problem. Databases don't work that way.

The dates all need to be entered into records of their own. Then it's easy to find the record with the last entered date.

We need additional information to suggest anything more specific.

  • Author

Sorry for the slow response Vaughan. If you take a look at the attached file it should show what I'm after. Mick

DoJo.zip

The Last Attended calculation needs to be in the Details table, not the related table. The calc should be:

Get( CurrentDate ) - Max( Attendance::Attendance Date )

  • Author

New it was an easy one (for experts), never even new the Max function existed, still learning, is Filemaker great!

Thanks Again!!

"ever even new the Max function existed..."

Yep, there are lost of functions to play with.

Another thing you need to know: say a Details record has more than one related Attendance records. From the Details (parent) record, a reference to a related Attendance field will only return the value from the *first* related record. The Max() function is able to see all the related values, as can the Sum(), Count(), List() and some other functions.

Edited by Guest

Create an account or sign in to comment

Important Information

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

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.