Solved

Crystal Reports SUM problem

Posted on 2011-09-07
8
270 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course 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

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…
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 …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 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