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.

Summing trouble

Featured Replies

We have a donation table with fields ID, Date, and Amount

We have a calculation field "CurrentYearTotal" that needs to display the sum of all donations (a sum of donations) made within the current year (Jan. 1st to today)

Can we do this with out a script and just a Calculation Field?

So basically how do I restrict the records that are summed without dong a find. We don't want to do a find because we want to be able to see all time grand total next to current year total.

I'll capitulate if a script is the only way to do it but I really prefer not to use one.

You can do it, but it may run much more slowly than a script if you have a large number of records. You need a calculation number field cYearDate equal to Year(Date), an unstored calculation number field cYearNow equal to Year(Get(CurrentDate)), a self-relationship from cYearNow to cYearDate, and your CurrentYearTotal field equal to Sum(selfrel::Amount).

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.