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.

Payment totals by customer

Featured Replies

I've been trying to work this out and I just can't figure it out, sorry if it is really lame-brained.

I want to figure out total payments received from customers, comparing customers against each other. For example I want to quickly determine our top five customers in 2005.

I have a customer table, each record has a unique customer ID. I have a payment table, each record has a unique payment ID. When a payment record is created, it looks up the customer ID (from the invoice) and copies it to the payment record. So this should be easy but my mind can't find the answer.

I think I want to search a date range in the payment table and then subtotal by customer ID (I would prefer to display the customer name instead of the numeric ID, which could be accessed via the relationship to the customer table) sorting by the total of each customer's total.

I'm almost there with this, I can feel it, however there is something blocking me.

Edited by Guest

Hi, wplate.

Create relation from Customers to payments by date range and Customer_ID, then in Customer table create Calc field: Total_On_Range=Sum(Payments::Amount), then sort by this field your Customer table. I hope this will help.

  • Author

Thank you for your reply. I don't get the part of making a relationship based a date range.

I created a text field where I entered a date range and had that field relate to the payment date in the payment table (along with customer ID), but I'm guessing that's not right since the calculated total you suggested remained empty.

So how to put a date range in the relationship?

Hi, wplate!

I builded example in the attachment.

Total_Payments.zip

  • Author

Wonderful! Thank you for the example, this is very helpful.

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.