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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with formulas

Status
Not open for further replies.

Fermo Zolli

Technical User
Aug 20, 2019
10
IT
Hi, everybody,

Tried to insert following formulas in one report of Crystal Reports:

@pippo placed in the detail section:
whileprintingrecords;
numbervar pippo;
pippo := sum ({LOCATION.SRLO_EFFECTIVE_VALUE});

@results placed in the group footer:
whileprintingrecords;
numbervar pippo;

@Reset placed in the group header:
whileprintingrecords;
numbervar pippo := 0;

The formula unfortunately is summing the full data base effective values and not resetting at every change of group code. Where am I wrong, please, cannot solve and became crazy? At the end I solved in a very simple way with the standard Summary function of Crystal, but I would anyway like to understand this better, for future applications.

Regards,
Fermo
 
You should change your sum to look something like this. sum ({LOCATION.SRLO_EFFECTIVE_VALUE}, {Name of field you are grouping on})
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top