?
Solved

Create a Running Total or Summary of Maximum Values in a group

Posted on 2004-08-19
3
Medium Priority
?
245 Views
Last Modified: 2010-08-05
I need to sum a set of Maximum Values for a field named ContractRevisedValue. I have 3 levels of grouping. First by Project Name, Second by a formula field which takes the Left 2 characters from a field named BudgetCode and third by ContractNumber. The field ContractRevisedValue is actually a summary field within the Contract Invoice. A contract can have multiple invoices associated with it. Therefore, the ContractRevisedValue can have multiple values. Since I am looking for the most current value, I take the Max of the value and throw that into the Group 3 Header along with the Contract Number. I have tried to create a Running Total Summary field but am probably not choosing the appropriate change criteria in the Edit Running Total Field dialog box. The goal is to have a summary of the maximum values at the second grouping. In regular terms, I would like to know the sum of Maximum Contract Values for Each change in Budget Code.
0
Comment
Question by:MarkEOwen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
bdreed35 earned 1500 total points
ID: 11842856
You may have set up you running total correctly, but since CR calculates running totals while records are being printed, you won't have the correct value displayed unless you place the RT field in the Group 2 Footer.  

Looking at what you are tyring accomplish, I don't think it is possible to get it to display in the Group Header, even if you went with formulas and variables.  You can definetly get it to calculate and display the proper value in the Group 2 Footer if you place it there.

Try moving it to the footer as the first step and see how your values comes out.  You won't be able to summarize another summary field like the max, but if you sort the details ascending, then set up you RT to sum ContractRevisedValue, Evaluate on change of Group 3, and then Reset on change of Group 2, you will probably be getting the resutls you want.
0
 

Author Comment

by:MarkEOwen
ID: 11842915
I have tried the RT field in both footers on groups 2 and 3 and the max value is displayed, not a summary. Unfortunately, I don't have access to the underlying detail for the summary field ContractRevisedValue.
0
 

Author Comment

by:MarkEOwen
ID: 11934830
I am unable to use the summary fields so I have had to resort to using several SQL views to extract the data directly from the details
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question