Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

calculating median

Featured Replies

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

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

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

  • Author

dear folks,

i have been trying for days finding the median but i am still at the dark. i am enclosing the file i have now in case someone would like to help me find the median of the formeur & noFfr (last two fields on the database) thanks.

:

median.zip

Hi

this is a scripted way ( it returns the median of the found set )

median.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.