Solved

Crystal Reports SUM problem

Posted on 2011-09-07
8
269 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 100

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 100

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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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 100

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 100

Accepted Solution

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

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…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

732 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