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

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

Recommended Posts

Posted

I'm stumped. I need a calculation that will return the quartile rank for a record within a set. I was able to easily do this in Excel, but not so sure how to do this in FileMaker, or if it is even possible to do so. Any tips would be greatly appreciated!

 

For example: I have 14 records. I need to know in which quartile they ranked in based on the amount of their contributions. 

Posted

If you sort the records by contribution, you can set the quartile for each record with the calculation:

Ceiling ( Get ( RecordNumber ) / Get ( FoundCount ) * 4 )

 

Posted

If you use this in a calculation, be sure to set the field Options > Storage Options to 'do not store calculation results'.

Nice, Jeremy! :)

  • Like 1
Posted

Kims,

What do you wish to do in case of tie?  For instance, two identical amounts can actually appear in different quartiles - the first being in section 3 (for example) and the next duplicate in section 4.  Sorting, of course, sorts by Amount but then by order of creation.  If you wish ties to hold the same quartile number, it might get more complicated.

  • 2 weeks later...
Posted

Thanks for the suggestions. I got that to work, but what if I need to figure out quartiles for multiple fields? So I have the quartile rank based on contribution. Then I need another quartile rank based on account balance. Then another quartile rank based on number of people. 

Posted (edited)
1 hour ago, kims said:

Thanks for the suggestions. I got that to work, but what if I need to figure out quartiles for multiple fields? So I have the quartile rank based on contribution. Then I need another quartile rank based on account balance. Then another quartile rank based on number of people. 

Then use stored number fields instead of calculation fields, and set each quartile field in a script that does separate sorts before setting each quartile field. A script also potentially makes it easier to handle ties, to address LaRetta's point.

Edited by jbante

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