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.

summary based on year

Featured Replies

Hi,

I have a database for members. Each year they pay a particular amount depending on their status.

In the database i have a table for payments, in that table are two fields:

Year

Amount Paid

For each member a new 'payment' record is created.

On a related table i have two more fields:

Year (a drop down list containing years based on the payments table)

Total Revenue

i want to be able to select a year and have the revenue appear in the revenue field.

I know the basic consept of the solution:

'the sum of {amount paid::payments} when {year::payments} = {year::main}

just not how to implement it, or the functions to use.

Apologies if i have not explained this too clearly. I would put up an example if needed, but the database is way too big to put up...

Thanks in advance,

Nat

Create a relationship from Main::gYear (formatted as a list) to Payments::Year, and a calculation field in Main of Sum(Payments::AmountPaid).

  • Author

Already did that, and the sum field calculates to total for all years, not just the year selected...

Is the relationship using the = operator? It sounds as if it may be using the X operator, which would relate each Main record to all Payments records. Also, make sure the calculation field is summing the correct relationship (if you have more than one relationship to Payments).

  • Author

I looked at what i had, and i had the summary on the wrong Payments table... It works now, 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.