Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are my grand total and/or summaries incorrect after performing a group selection or Top N/Bottom N sort?

0
Posted

Why are my grand total and/or summaries incorrect after performing a group selection or Top N/Bottom N sort?

0

While record selection is evaluated during the first pass, group selection is evaluated in the second pass. Because Crystal Reports creates summaries in the first pass (therefore prior to evaluating group selection), the summaries don’t reflect the groups that have been suppressed from the report. To correctly summarize and/or grand total a report that has a group selection formula, creating running totals, either using variables and the WhilePrintingRecords function, or with the Running Total Expert (available only with version 7 and 8). Crystal Decisions has an excellent document that describes this process in detail and will give more information on why if you have a count() or Sum() function in your formula you would not be able to summarize on it. You can find this document at http://support.crystaldecisions.com/communityCS/TechnicalPapers/scr7_evaluationtime.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123