Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8419

unable to summarize formula in profit report

$
0
0

HI team,

 

need your help in figuring out what to do in order to be able to summarize a formula  in a report that our management team uses for profit analysis....

 

 

the report has 7 group levels.

I created the formula "COST FOR LANDFILL"  in Group 7 where it works fine :

 

if (isnull({ServiceInfo.ThirdPartyServiceProvider}) or {ServiceInfo.ThirdPartyServiceProvider}= 'None') and
{EquipmentType.MaterialCat} = "TRASH" 
then

({@CanSize}*{ServiceInfo_vw_CurrentServices.Quantity})*4.33*{@Averagelbs}/2000*{@landfillcost}*{@servicefrequency}

else 0

 

but NOW I will have to add it to group 5.

and I figured out that it has something to do with my {@Average lbs} formula... but I just cannot fix it myself.

 

"AVERAGE lbs

if isnull(Average ({@pds per yard  by auditwegiht}, {ServiceInfo_vw_CurrentServices.ServiceInfoUID})) then 80 else
if (DistinctCount ({ServiceHistoryWeightAudit.ServiceHistoryWeightAuditUID}, {ServiceInfo_vw_CurrentServices.ServiceInfoUID})) <{@# of required weights by serviceinfo} then 80 else

Average ({@pds per yard  by auditwegiht}, {ServiceInfo_vw_CurrentServices.ServiceInfoUID})

 

 

Help please....

 

IF you can help me create this summary then I will have to refer to this to create the profit

 

I will attach a crystal report for your convenience.

the 'problem field' is highlighted in yellow.

 

THANKS SO MUCH!!

 

Sabine

 

P.S. I am no master reports builder obviously so I hope I can implement your suggestions.


Viewing all articles
Browse latest Browse all 8419

Latest Images

Trending Articles



Latest Images

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