Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

average of a calculated field?

$
0
0

Hi team,

 

I am trying to create an average in group 1 on a number variable in group 10

 

here is my group 10 formula:

Whileprintingrecords;

numbervar avglbs;

if {#weekday count} >= {@servicefrequency} then Average ({@pds per yard  by auditwegiht}, {ServiceInfo_vw_CurrentServices.ServiceInfoUID}) else

if ({#weekday count} < {@servicefrequency} and not isnull({Site.cstScaleWgt})) then {%cstscaleweight} else

if ({#weekday count} < {@servicefrequency} and isnull({Site.cstUnits})) then 80 else

if ({#weekday count} < {@servicefrequency} and not isnull({Site.cstUnits})) then 30

 

here is my reset in groupH 1

WhilePrintingRecords;

numbervar avglbs := 0;

"";

 

my Display footer in GF 1"

which only results in 0

 

whileprintingrecords;

numbervar avglbs;

 

thanks for your help,

 

Sabine


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>