Solved

Crystal Reports SUM problem

Posted on 2011-09-07
8
259 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:codedigger
  • 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:codedigger
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
 

Author Comment

by:codedigger
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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:codedigger
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:codedigger
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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 …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

10 Experts available now in Live!

Get 1:1 Help Now