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.

Featured Replies

Hi everyone!

Is there someone who could send me an example of a calculation field that acts like a summary one using the SUMMARY function?

I tried to use that function but my calculation field is always empty, even if I sort all records with the correct field...

Thank's a lot!

Are you using a Summary field or a Calculation such as

GetSummary (summary

  • Author

Hi Fitch,

Yes I'm using a calculation such as GetSummary(summary field, break field) and I'm looking at it in Preview mode...

Hi christianv,

There is no 'SUMMARY' function in FileMaker. The closest would be the GetSummary( ) function that Tom has referred to, or perhaps the various aggregate functions which summarise data directly - eg Sum( ), Max( ), Min( ), StDev( ) etc.

If you're referring to the GetSummary function, it doesn't act like a summary field at all. Instead, its purpose is to allow you to set up a calculation to reference an existing summary field. The summarising is therefore done by the summary field and is merely brought into the calculation by the GetSummary( ) function

Since Summary fields otherwise work within reports, where they can be used to generate sub-summaries when the data is sorted by a particular field, the GetSummary( ) function also provides the option to retrieve sub-summary values when the database is sorted by the appropriate field.

For this purpose, summary field that hte GetSummary( ) function is to reference must be specified as the first paramenter, and the field that the database must be sorted by in order for the summary value to calculate must be specified as the second parameter. When the database is not in fact sorted by the specified 'break field' for the sub-summary, the GetSummary( ) function rightly returns null. However if the summary field is also specified as the break field, then the value of the summary across all records (as it would appear in a trailing grand summary, for instance) is returned.

  • Author

I found that while I was doing some tests:

If my sort key is a field from the active table (the table were is my report and were I defined my calculation field whit a GetSummary), everything is fine...but if my sort key is a field from another table that is linked to the main table, my calcultation field return NULL!!!

Anyone has an idea?

  • Author

Hi finaly found what I was looking for...

For those who may face the same problem, you have to define a field that is equal to the linked field you what to use to sort instead of using it directly (cCompany, calculation = Client::Company instead of using directly Client::Company)

Don't ask me why it has to be that way...the only thing I know is that it's working! smile.gif

Have a good day!

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.