I need help summing a formula. I'm using CR10. I have 3 formulas; the first 2 are init and eval
formulas. I have these supressed in the GH. The last formula displays the total for each agt_rpt_nbr in the GF. I need a grand total for the @YTDQualProd. Can anyone help with this? I can't sum this formula.
Thanks in advance.
//@Init
WhilePrintingRecords;
NumberVar YTDQualProd;
YTDQualProd := 0;
//@Eval
WhilePrintingRecords;
NumberVar YTDQualProd;
if ({CLASS_CDE} in ['01','02','04','06','07','10','11'])
then YTDQualProd := Sum({@Actual YTD Pap},{AGT_RPT_NBR) else
if ({CLASS_CDE} in ['08','09','12','13','14','15','16','18','19','20','21','22','23','26']) and
Sum({@Actual YTD Pap},{AGT_RPT_NBR}) >= 75000 then
YTDQualProd := Sum({@Actual YTD Pap},{AGT_RPT_NBR})
else YTDQualProd := 0
//@YTDQualProd
WhilePrintingRecords;
NumberVar YTDQualProd;
YTDQualProd;
formulas. I have these supressed in the GH. The last formula displays the total for each agt_rpt_nbr in the GF. I need a grand total for the @YTDQualProd. Can anyone help with this? I can't sum this formula.
Thanks in advance.
//@Init
WhilePrintingRecords;
NumberVar YTDQualProd;
YTDQualProd := 0;
//@Eval
WhilePrintingRecords;
NumberVar YTDQualProd;
if ({CLASS_CDE} in ['01','02','04','06','07','10','11'])
then YTDQualProd := Sum({@Actual YTD Pap},{AGT_RPT_NBR) else
if ({CLASS_CDE} in ['08','09','12','13','14','15','16','18','19','20','21','22','23','26']) and
Sum({@Actual YTD Pap},{AGT_RPT_NBR}) >= 75000 then
YTDQualProd := Sum({@Actual YTD Pap},{AGT_RPT_NBR})
else YTDQualProd := 0
//@YTDQualProd
WhilePrintingRecords;
NumberVar YTDQualProd;
YTDQualProd;