Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6511 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a calculation field in the parent table where I need to have an average of values in a field from the related records in a child table. But I need to only limit the calculation of the average to the LOWEST 5 values of the field FROM ONLY the last 10 records entered.

Is there a simple way to do this that I am missing?

Posted

I don't know about simple, but it could be done using a couple of custom functions.

The first function would get the values from the last 10 records (for this, the relationship needs to be left unsorted, or sorted by CreationDate or ChildID). In v.8.5, you could use the new List() function instead.

The second function would sort the 10 values, in ascending order. Then you would the take the first 5 values of the result and average them.

This topic is 6511 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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