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.

Math with fields from different records

Featured Replies

Hi,

What you need to do is define some "self join" type relationships. Think about what pieces of information actually tie the records you want to perform math on together, and then have your calculations "look" through these relationships. Here is a simple example of this:

Take an invoice file that has multipe invoices for a single customer. Let's say you want to count the number of invoices in the system for that customer. What you do is create a relationship to the same file using the customer ID as the key field. (NOTE: Make sure that the relationship is set NOT to create or delete related records!) Next create a calculation field that uses the "Count" funtion and define as follows.

CalcField = Count(RelationshipName::ID Field)

This will give you a count of the related records and will show how you can use related values from the same database in your calculations.

Good luck,

Martin Wiedemann tongue.gif" border="0

Can anyone tell me, how do I do math with fields from different records? For example:

field B, record 1 = field A, record 1 + field A, record 2

Thanks

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.