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 6422 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello,

I have database of students listing their scores on various tests.

I would like to create a field to supply me with the average score for males on a specific test.

I am using a summary field but I am getting the average of all students for a specific test.

Your help is appreciated

DH

Posted

Why don't you add a sub-summary part (when sorted by gender) to the layout, and place your summary field in it.

You could also do a find for a specific test AND specific gender, but I think that might get tedious very quickly.

Posted

Thanks for the response. I think I would like it to be more dynamic. Meaning when a new entry is made the field would update immediately. Instead of having to perform a sort or find in order to see the result. Is there a way to have FMP sort the subsummary automatically without effecting the whole db.

Thanks for your help.

DH

Posted

Is there a way to have FMP sort the subsummary automatically without effecting the whole db.

No. You only see sub-summaries in Preview mode, after sorting. Perhaps you could do something else: define a calculation field that returns the score if the student is male. Then summarize this field separately.

This might be suitable for a very small number of sub-totals; if you need more sub-categories, consider aggregating over filtered relationships.

Posted

Perhaps you could do something else: define a calculation field that returns the score if the student is male.

This is what I am trying to do in one field, but I can't get Males and Females to average seperately. It is driving me crazy. I can get it to work in excel using "daverage" but no luck in FMP

Posted

Hello

Thanks for interacting with this calculation I am having.

But I am trying to keep it to one calculation.

This is what I have so far but I cannot get it to keep it to a specific gender in the calculation.

If (StudentGenderlu="M" ;Average ( SaxonJune))

*Saxon June is the type of test given in that month

Posted

But I am trying to keep it to one calculation.

I don't think you can, at least not with your version (with 8 Advanced and up, you could do this with a custom recursive function).

I suggest you read the help on the Average() function to understand why your attempt won't work.

Posted

I should have updated my profile, sorry.

I am using 8.5 advanced.

Is there a way to achieve this using 8.5?

Thanks for all of your help and time.

DH

I don't think you can, at least not with your version (with 8 Advanced and up, you could do this with a custom recursive function).

I suggest you read the help on the Average() function to understand why your attempt won't work.

Posted

You can update your profile in the Control Panel under the My Profile tab at the top. Go to the FileMaker Questions section.

Posted

You can update your profile in the Control Panel under the My Profile tab at the top. Go to the FileMaker Questions section.

Thank You

Posted

I am using 8.5 advanced.

Is there a way to achieve this using 8.5?

Yes, as I said you could this with a custom function, but... it would not be the easiest function to write, and it would be quite slow compared to a summary field. How slow depends on how many records are there in the found set.

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