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.

Problem with a calculation with 3 fields (Level=Novice)

Featured Replies

  • Newbies

Hi everybody, I can´t get a formula to solve my problem, I´ve 3 fields, "Income", "Expenses" and "Total" like in this spreadsheet https://docs.google.com/spreadsheet/...zFvcHNad0dSYXc

But i can´t get Filemaker to do the same operation.

In the first row "Income" has a value and the "Total" is "Income - Expenses", but in the second row "Total" need to subtract from the previous "Total" and then from "Expenses"

Any help?smug.png

Hi! Welcome to FM Forums!

What you require is a summary field. You first create a calculation which produces the 'total' per record maybe called cLineTotal, which in your case would be:

Income - Expenses

Then a summary as: Total of cLineTotal ... and notice the 'running total' checklist at the bottom. :laugh2:

Try

Total = If(Get(RecordNumber) = 1; Income - Expenses; GetNthRecord(Total; Get(RecordNumber)-1) + Income - Expenses)

  • Author
  • Newbies

What you require is a summary field.

Then a summary as: Total of cLineTotal ... and notice the 'running total' checklist at the bottom. :laugh2:

Great!!!! This worked like a charm!!!!

doughemi, thanks for the formula, with this I know a new way to do it!

Thank you both!!

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.