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.

Limiting calculations to subsets

Featured Replies

  • Newbies

Hey, there --

I'm using FMPro 5.5. We have a database used to manage our mouse colony with >70k records. My problem is, I've created a field to give a current age for each record in weeks [(Today-birthdate)/7]. Works fine, but the value is recalculated every morning the first time filemaker is open. And with 70,000 records, this takes a long time. (~15 minutes, according to the coworker who pointed this out to me.) How can I reduce this problem? I'd like to somehow limit the calculation to only those records where a certain field has a certain value. Something like "If 'alive?' equals 'Y', then (Today-birthdate)/7" but I have no idea what the language for that would be and I'm not entirely sure this would speed the process up.

Any suggestions would be greatly appreciated. Thanks!

Use Status(CurrentDate) instead of Today and make the calculation unstored in the Storage Options (Do not store calculation results).

You could do something like Case( IsEmpty(deathdate), (Status(CurrentDate) - birthdate)/7 ).

  • Author
  • Newbies

Thank you! I'll try that.

One question about the deathdate case -- would that slow the calculations down again because the program would have to sort through date of death for all records?

It won't recalculate for all records unless you have all records found and are using a list view layout with the field on it. Unstored calculations only calculate when they or calculation that references them is on the current layout.

  • Author
  • Newbies

Everything seems to be working great -- no 15 minutes to open the file of a morning. Thanks very much, Queue!

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.