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.

Function to get Total of filtered field

Featured Replies

I have a Transaction table. It has the fields "TransactionType" and "TransactionAmount". The field TransactionType contains a Value List.

JM

FM

AM

Is it possible to get the SUM of just the amounts with the AM type?

Thanks,

jim

There are several approaches to this:

1. Create a summary field, Total of TransactionAmount. Find all transactions of type "AM" and the summary field (since its result reflects the found set) will show your total.

2. Put the summary field and the TransactionType field in a sub-summary part by Transaction Type. Sort by Transaction type and each sub-summary section will display a total for that type.

3. Create a filtered selfjoin relationship by transaction type.

  • Author

There are several approaches to this:

1. Create a summary field, Total of TransactionAmount. Find all transactions of type "AM" and the summary field (since it's result reflects the found set) will show your total.

2. Put the summary field and the TransactionType field in a sub-summary part by Transaction Type. Sort by Transaction type and each sub-summary section will display a total for that type.

I think I need to explain further. I already have a Summary Field, Total of Transaction Amount - a Grand Total if you will.

Now on the same layout I want to break down the grand total into its subsets of AM, JM, FM

My fuzzy logic tells me it should be

Sum of TransactionAmounts where TransactionType=AM

but I guess things aren't always that simple :

3. Create a filtered selfjoin relationship by transaction type.

I'll look at this and see where it goes.

Thank you.

Edited by Guest
added some wishful thinking

"Now on the same layout I want to break down the grand total into its subsets of AM, JM, FM"

That's exactly what a subsummary report is. By placing a summary field in a subsummary part, you'll get totals by the break field.

I already have a Summary Field, Total of Transaction Amount - a Grand Total if you will.

This summary field will display a grand total ONLY if it is in a leading or trailing GRAND summary part. As Barbara pointed out, if it is in any other sub-summary part it will display the sub-total for that break.

  • Author

Thanks, I was just reading the documentation on how SubSummary reports work when you responded.

Marvellous.

Keep in mind that subsummary report totals reflect the found set. For example, if you find first for a date range, your totals will change (and that's useful).

  • Author

Keep in mind that subsummary report totals reflect the found set. For example, if you find first for a date range, your totals will change (and that's useful).

Yes I would want that.

  • Author

Okay one more if I could indulge you . . .

I got the subSummary and a Trailing Grand Summary and it looks like this

fm_subSummary1.png

Can you give me a clue how I would lay it out to do this, so that the SubSummaries are further divided. This is just a graphic edit.

fm_subSummary2.png

What differentiates between the two groups?

To add to Comment's post: you'll need to have another field that allows the two groups to be differentiated, and a sub-summary based on that field to create the grouping in the report.

  • Author

Thanks for all the help and clues everyone.

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.