Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't want to Sum Suppressed values 1

Status
Not open for further replies.

mulema

Technical User
Nov 16, 2002
32
0
0
US
Hi,
I am using Crystal 8.5 on Oracle 8i.
I am summing up my Totals Sales Amount on GF1. My detail line has a Format Section formula, where I am suppressing duplicate lines.
The problem I am facing is that my Summed Up Totals on GF1, is adding up these suppressed values as well. I need help on how to fix this.
( I have not been able to do a search on this site since the Search feature is still under construction. )

Thanks for your help.
Mulema.
 
You could use the 3-formula method to manually sum your field. In the evaluation formula, use the same logic that you have applied to your suppression formula to determine whether to add to the sum or not.

Formula in GH:

whileprintingrecords;

numbervar mysum := 0;


Formula in detail section:

whileprintingrecords;

numbervar mysum;

if not(YourSuppressionLogic) then mysum := mysum + {table.field};

Formula in group footer:

]whileprintingrecords;

numbervar mysum;

mysum;

-Gary
 
Worked perfectly.

The NOT(SuppressionLogic) was my culprit. I added the NOT and was good.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top