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.

Get mean value of related fields

Featured Replies

Hi,

I have a table called "sequence" with records of the sort

[color:green]Patient - text

[color:green]Time - number

[color:green]Sample - text

[color:green]SeqLength - number

In Sequences, there are often several entries that share the same [color:green]Patient, [color:green]Sample and [color:green]Time values.

I have a related table "Visits" that has a single record for every unique Patient/Time /Sample combination (ie a many-to-one from Sequences to Visits). In Visits, I would like to have a field [color:red]AveSeqLength that is the mean of all of the [color:green]SeqLength entries from matching records in Sequences. Does anyone have any idea of how to do this?

Many thanks,

Marcel

(I originally posted this as a multi-part problem in the database schema forum, but since then have solved the database part of it)

Try:

AveSeqLength (calculation, number result) = Average(sequence::SeqLength)

  • Author

That worked great! Thanks,

Marcel

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.