Jump 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.

Using Functions in Subsummaries

Featured Replies

  • Newbies

Hi!

I have a database of patient surveys that I have upgraded from FM 6 to FM 7, and am having trouble producing accurate reports using subsummaries.

Normally, calculations work fine with subsummaries--if, for example, C = A + B, then I could write the following formula:

C = GetSummary(A, break field) + GetSummary(B, break field)

HOWEVER, if a calculation contains a formula, then FM 7 will show an average of ALL surveys (i.e. not doing a subsummary)

For example, the following formula would work in FM 6, but NOT FM 7 (as far as I can tell)B)

C = Average(GetSummary(A, break field), GetSummary(B, breakfield).

Similar results occur with other functions, such as Count().

Is there any way I can find subsummaries of fields based on calculations containing functions in FM 7?

Any information you might have would be MOST appreciated!!

I was able to reproduce this behavior. The GetSummary() part is working correctly, but the Average() is not. To get it to work, you could change the calculation to:

C = (GetSummary(A, break field) + GetSummary(B, break field)) / 2

or

GetSumA = GetSummary(A, break field)

GetSumB = GetSummary(B, break field)

C = Average(GetSumA; GetSumB)

Create an account or sign in to comment

Important Information

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

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.