Link to home
Start Free TrialLog in
Avatar of Roberto Madro R.
Roberto Madro R.Flag for United States of America

asked on

Crystal Reports SUM problem

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
Avatar of Mike McCracken
Mike McCracken

Need to know how you are doing the totals?

Are you filtering any records?

mlmcc
Avatar of Roberto Madro R.

ASKER

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  
Is the distinct count wrong?

Are you trying to sum the distinct count summary

Can you uplod the report?

mlmcc
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.
How are you doing the SUM?

You have to use formulas and variables.

mlmcc
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
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.