Jump to content

This topic is 5205 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted (edited)

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
Posted

"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.

Posted

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.

Posted

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

Marvellous.

Posted

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).

Posted

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.

Posted

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

Posted

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.

This topic is 5205 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.