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.

Calculating total for same field,different records

Featured Replies

Example : frown.gifRecord 1 , Field A = 100 -- Record 2 , Field A = 80 How do I create a field which shows total of 180 adding the 2 fields which are the same (A) but in different records. thanks

FMP 5 doesn't have custom functions. What you need to use is the Sum function with a relationship that will include all the desired records. It will look like this: Sum (Relationship name::Field A)

  • Author

I am rather new at Filemaker could you elaborate how I make a relationship -thank you

In the File menu you will find Define Relationships. Select that and you will get a dialog box, click on the New button. An open file dialog will appear, select the file you want to make the relationship by clicking on Open. You will now get a dialog which shows both files and the fields in each. Select a field from each list. If you want to allow creation of related records, click on that box. Click The OK button and your relationship is created.

This is in the manual.

  • Author

ralphl - Before your response I figured out how to create a relationship the problem I'm having now is totaling the sum for all records lets say field A 10 records. I can total fields within 1 record Sum(Election small::A,Election small::F) Election small is relationship name, but not combined for several records. I think it must be the expression correct.

You must have a relationship between the table you are doing the sum and the table that contains the records you want the sum of, even if they are the same table. The calculation is Sum(TO::Field A). In your relationship chart you have TO1 and TO2 related by some field. Now in the table that TO1 represents make the calculation Sum (TO2:Field A). Replace TO1 & TO2 with the names of the TO's in your chart.

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.