Solved

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

Posted on 2004-08-19
3
221 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
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
bdreed35 earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Date Formula Failure 26 114
Change start of Week from Sunday to Friday 8 51
Conditional Text in Crystal 4 51
Business Object Server 2 29
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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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