Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Crystal Reports SUM problem

Posted on 2011-09-07
8
Medium Priority
?
274 Views
Last Modified: 2012-05-12
I've got this report that's straight forward and all of its facets work fine, however, upon close examination and after having exported its output to an Excel spreadsheet, Excel is coming up with a different Grand Total than the report shows, that is the case when the report is run online or within the development environment. I did all the due deligence and checked all I could check but to no avail, Excel is correct and Crystal is wrong, I'll expound further if need be but I'll take any feedback up to this point.

Regards
0
Comment
Question by:Roberto Madro R.
[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
  • 4
  • 4
8 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 36499301
Need to know how you are doing the totals?

Are you filtering any records?

mlmcc
0
 

Author Comment

by:Roberto Madro R.
ID: 36499357
Straight forward, I'm grouping on an "Item Group" then creating a Summary that does "Distinct Count" on that "Item Group" and that SUM is in the Report Footer.

And here's craziness, I have an adjacent column "Pricing Level", grouped and summed the same way yet its Grand Total is correct whether it's in the Crystal Developer or dumped into Excel  
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 36499885
Is the distinct count wrong?

Are you trying to sum the distinct count summary

Can you uplod the report?

mlmcc
0
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

 

Author Comment

by:Roberto Madro R.
ID: 36506129
The Distinct Count is correct when done the group (whether header or footer) i the body of the report, but your second point goes to the heart of the issue I'm having, it is the SUM (to Report Footer) of the Distinct Count that's giving me fits.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 36506218
How are you doing the SUM?

You have to use formulas and variables.

mlmcc
0
 

Author Comment

by:Roberto Madro R.
ID: 36506277
For strategic reasons, I'm grouping first on the "Store Number" visited, second on the "Group" that customer belongs to, third on the Customer ID. Then I do a Distinct Count on the customer ID and park that in the "Store" Group Header, I then do the same thing (Distinct Count on the customer ID) but this time I prak that information in the Report Footer.

I hope this clarifies things.
Thx
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 36507276
What isn't working?

The distinct count in the report footer will most likely be less than the sum of the distinct counts from the store group.
Reason being a customer is listed for several stores.  The distinct means each customer is counted only once for the report footer but may be counted in several stores.

mlmcc
0
 

Author Comment

by:Roberto Madro R.
ID: 36532414
Dear mlmcc & friends at EE;

I discovered what the issue is and will share that with the EE community;
If you're planning on exporting a Crystal Report into an Excel spreadsheet, and that crystal report has a "Distinct Count" set to a given Group or as a Grand Total, you will NOT get the proper results in Excel, you see, Excel counts / sums based on the individual / referenced cell value, but a "Distinct Count" that comes from Crystal is that, a "Distinct", therefore you need to make it known to the Excel recepient not to use the Excel SUM fucntion to add up a "Distinct" value column that comes over from Crystal. I hope my explanation makes sense but once you test it you'll know what I mean.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

647 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