Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Good explanation of how aggregate functions work?


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

Recommended Posts

Posted

Hi, I am having trouble understanding aggregate functions.

In Filemaker The Missing Manual it states: "If you rever an aggregate function to even one related fiel, Filemaker aggregates that field's values from EVERY related record."

But say I use Count(LearnerID) in a calculation, it only counts the current active record. Not ALL records. How do I do that?

Posted

Stupid me :P Ok it works now. How can I tell it to count only certian fields, with a certian value? For Instance Count all Active Status fields?

Posted

There's no COUNTIF() function in Filemaker, so any conditions you have, you need to set them up in the related table - either as a calculation field with a numeric result, or as a numeric field to begin with (see here).

Alternatively, you could include ActiveStatus in the definition of the relationship - so that only active records are considered related. With a global gShowStatus field on the parent side, you can switch the relationship to include active-only/non-active/both as needed.

This topic is 6573 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.