CR10 - Trying to sum my Contracts by Year and then have a Grand Total in my Report Footer.
The following is the formula (hidden) in my details section to accumulate:
WhilePrintingRecords;
numbervar RCyrtot;
numbervar RCgrtot;
if not({@YTD Costs Recognized} = 0 and {@YTD Revenue Earned} = 0 and {@Over-Billing} = 0 and {@Under-Billing} = 0)
then
RCyrtot := RCyrtot + Sum ({@Revised Contract Amt}, {CURRENT_JCT_TRANSACTION.Job});
RCgrtot := RCgrtot + Sum ({@Revised Contract Amt}, {CURRENT_JCT_TRANSACTION.Job});
This formula is hidden in the group1 header to reset for the Yr totals:
WhilePrintingRecords;
numbervar RCyrtot :=0;
This is the formula for my Year Total (in GFooter1):
WhilePrintingRecords;
numbervar RCyrtot;
This is the formula I have for my Grand Total in the report Footer:
WhilePrintingRecords;
numbervar RCgrtot;
My problem...The YR total is correct. It only includes the amounts for the Jobs that appear on my report. But, the Grand Total includes hidden jobs that do not meet the requirements in the first accumulating formula, and I cannot figure out why.
My 3 Yr totals equal $8.6, $16.9 and $9.2. They should sum to $34.7, but instead my GR total is showing $37.0
Any help is appreciated!
The following is the formula (hidden) in my details section to accumulate:
WhilePrintingRecords;
numbervar RCyrtot;
numbervar RCgrtot;
if not({@YTD Costs Recognized} = 0 and {@YTD Revenue Earned} = 0 and {@Over-Billing} = 0 and {@Under-Billing} = 0)
then
RCyrtot := RCyrtot + Sum ({@Revised Contract Amt}, {CURRENT_JCT_TRANSACTION.Job});
RCgrtot := RCgrtot + Sum ({@Revised Contract Amt}, {CURRENT_JCT_TRANSACTION.Job});
This formula is hidden in the group1 header to reset for the Yr totals:
WhilePrintingRecords;
numbervar RCyrtot :=0;
This is the formula for my Year Total (in GFooter1):
WhilePrintingRecords;
numbervar RCyrtot;
This is the formula I have for my Grand Total in the report Footer:
WhilePrintingRecords;
numbervar RCgrtot;
My problem...The YR total is correct. It only includes the amounts for the Jobs that appear on my report. But, the Grand Total includes hidden jobs that do not meet the requirements in the first accumulating formula, and I cannot figure out why.
My 3 Yr totals equal $8.6, $16.9 and $9.2. They should sum to $34.7, but instead my GR total is showing $37.0
Any help is appreciated!