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.

How to calculate "total payment" over multiple records?

Featured Replies

I'm making a database for a literary magazine that tracks our contributing authors, the titles of their work and the issue each title appeared in, how much we paid each author, etc.

We pay authors by the page: $25 for the first page and $15 for every page after that. If every author had only one article per issue, "total payment for this issue" would be an easy calculation. However, many authors have several pieces in one issue. I'm giving each title its own unique ID, and currently I have a basic calculation that figures the subtotal paid for *that piece.*

How can I write a calculation that will search the database for other instances of the same author's work in a particular issue and then total the individual subtotals so that it returns a figure equal to "total payment for this issue"?

I'm sorry if this is confusing...I'm new and confused myself.

Thank you, fellow filemakers! I'm so grateful for you all! I hope I learn enough to be able to help someone soon.

Is it $25 for the first page and $15 for every page after that for each piece or for an issue? IOW, is your calc already considering this pricing?

If so and you just want to add those calc up, you can create a summary field that totals that calc up.

Edited by Guest
added

I don't know whether mr_vodka's reply has answered your question; I also don't know how you have set up your database and what your calculation for determining the amount to pay an author is.

See attached for my way of calculating the amount to pay without "searching". As mr_vodka, I couldn't decide whether you wanted to show the total when only the first page of the first article by an author was paid at $25 or $25 was paid for the first page of each article by the same author - so I have included both ways. How appropriate for your needs this is, I don't know.

Magazines.zip

  • Author

Yes, all articles are $25 for the first page and $15 for subsequent pages so your first portal, efen, is the applicable one. I'm checking it out now...

Thanks so much for taking the time!

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.