Solved

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

Posted on 2004-08-19
3
219 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now