Solved

Sum of a summarized field in Crystal Report 11

Posted on 2008-10-22
5
1,130 Views
Last Modified: 2012-05-05
Hi,
I'm new to Crystal reports and I am trying to get a total sum of a number of sums.
So far I have
Counterparty:  ID A
                               {start time} {end time} {Quantity1] //this breakdown of detail is hidden in the subreport
                                {start time} {end time} {Quantity2} //this breakdown of detail is hidden in the subreport
                                {start time} {end time} {Quantity3} //this breakdown of detail is hidden in the subreport
                                                                   Sum(Quantity)
                        ID B  
                                {start time} {end time} {Quantity1} //this breakdown of detail is hidden in the subreport
                                {start time} {end time} {Quantity2} //this breakdown of detail is hidden in the subreport
                                {start time} {end time} {Quantity3}  //this breakdown of detail is hidden in the subreport
                                                                   Sum(Quantity)
I then need to have a Sum(SumQuntity).  Which is where I am having problems as when I try this crystal brings up an error saying that I can't summarize a summary.

Can this be done?
Any Help?
Thank you.
0
Comment
Question by:aditi55
[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
5 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22776752
Yes but you have to use variables and formulas

How do you calculate the Sum(Quantity)

You need a formula like this in the group footer
Global NumberVar ReportTotal;
ReportTotal := ReportTotal + {Sum(Quantity) formula};

Display in the report footer with
Global NumberVar ReportTotal;
ReportTotal

mlmcc
0
 

Author Comment

by:aditi55
ID: 22777657
I have calculated Sum(Quantity)  by creating a formula field which includes sum({@Quantity}) as the formula.

I have tried the formula suggested but I just get a value of 0.  
What I would like to see is:                            
Counterparty:  ID A    Sum(Quantity)
                        ID B    Sum(Quantity)
                        ID C    Sum(Quantity)
                                   TotalQuantity.
But what I see is:
Counterparty:  ID A   Sum(Quantity)
                                  TotalQuantity = 0
                        ID B    Sum(Quantity)
                                   TotalQuantity = 0
                        ID C    Sum(Quantity)
                                   TotalQuantity = 0
I don't quite understand where I am going wrong.
       
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 22779427
Add WhilePrintingRecords as the first line of the formula

Put the display in the report footer not the group footer.

mlmcc
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

624 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