Jump to content
Server Maintenance This Week. ×

calculating median


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

Recommended Posts

hi again. may someone help me translate the following calculation o have from excel.

=MEDIAN(D2:D51,G2:G51)

i am trying to get the median. i get it in excel but not in filemaker. d2:51 are the values on the D field and g2:g51 on another. thanks

Link to comment
Share on other sites

There is not a "natural" function for calculating the median with FM.

Here are some threads pertaining to it. Also I know that you dont have FM Avdanced, but it may be worth the investment to use Custom Functions. some of the methods here make use of custom functions.

Median thread 1

Median Thread 2

Median CF

Link to comment
Share on other sites

You don't need a custom function to calculate the median - provided your values are sorted. If they're not, then you DO need a custom function to sort them.

I think the first step here would be to normalize the database, so that the values are in the same field for all records. After that - it depends on whether we want the median of the found set, or of related records, or of all records.

Edited by Guest
Link to comment
Share on other sites

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