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.

Finding in Summary Field

Featured Replies

I think this is a pretty basic question, but I just can't seem to figure it out.

I am generating a report which has two summary fields - Addition (totaling numbers), Subtraction (totaling numbers) and a calcuation field Balance (Addition - Subtraction). I want the report to only show amounts wher Balance is greater than zero. I can't do a find on the summary field to exclude records, so how can I accomplish this.

Thanks so much for your help.

David

This is a kind of circular logic: summary fields summarize the found set. If you omit records from the found set, the summaries will recalculate. You cannot build a found set on the basis of expected results.

What is the real issue that you're trying to solve here?

  • Author

Thanks for the response. That make sense.

Basically what I am trying to do is this: Let's say I have an Invoice table with fields:

Customer

Invoice Amount

Payment

I summarize all Invoice Amounts and all Payments, grouped by Customer and then calc a balance by subtracting the Summary Payment from Summary Invoice Amount. On the report I want to exclude all Customers with a zero balance. I can not create a Balance (calc) field because I am importing the information from somewhere else and Invoice Amount and Payment are not in the same record. They are in different records, no one record has an Invoice Amount and a Payment.

I can sort of accomplish what I want by creating a Customer record in a separate database, but I am trying to avoid this.

I hope that makes sense.

Thanks again for your help.

David

After finding the records and sorting them by Customer, you need to loop and omit records where:

GetSummary ( sTotalAmount ; Customer ) ≤ GetSummary ( sTotalPayment ; Customer )

If you have a large amount of records, you can make this faster by using Mikhail Edoshin's "FastSummaries" technique: basically, if the first record of the group meets the above condition, you omit the entire group at once using GetSummary ( sCount ; Customer ).

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.