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.

Running sum total of commission earned

Featured Replies

Hi there Forum

I have set up a database to administer our product sales commission programme. Staff at clinics across the country sell items to clients and complete a line by line record of each individual sale they make which accumulates them 10% commission of the individual product wholesale price.

I am using the 2 databases below to enable a field to have a running balance of the commission earned in Programme Lines as below:

Clinic Personnel (containing <PERSONNEL ID> and <COMMISSION BALANCE>

Programme Lines (containing <COMMISSION> and <PERSONNEL ID>

The calculation I have used for the field displaying the total sum of commission is:

If ( Clinic Personnel::ID = Programme Lines::Personnel ID ; Sum ( Programme Lines::Commission ) )

This is not returning a value of anything - can anybody see where I am going wrong?

Many thanks in advance for any assistance you can provide.

Best regards

Tim

If the Programme Lines table is related to Clinic Personnel by Personnel ID (on both sides) then there is no need for the If() conditional, just use the Sum() to total up the related commissions through the relationship.

The relationship is doing all the work of working out which commissions to include.

  • Author

Hi Vaughan

Thank you so much for your reply and input - it worked perfectly!

Best regards

Tim

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.