hi Trey,
the array builder formula is already set up to include the procedures performed values. see these lines...
numbervar pe:= {DriveProjectionAndCollectedTotals.ProceduresPerformed};
&
ape[n]:= ape[n] + pe;
this means that in your second cross-tab you need to ensure that you reference the variables created in that formula. ape[n] is the array of those procedures performed. you do need to ensure that there are unique variables for any counters in each of the formulas though. also unique variables are required for running totals within those display strings and any other variables.
steps:
on your second cross-tab for the first summary, change the display string formula to this:
whileprintingrecords;
stringvar t:= GridRowColumnValue ("rpt_EquipmentMaster.Description");
stringvar array ad;
numbervar array ape;
numbervar c4:= 1;
numbervar n3;
while c4 <= count(ad) do
(
if t = ad[c4] then (n3 := c4; exit while);
c4 := c4 + 1
);
numbervar apne:= ape[n3];
totext(apne,0)
on that second cross-tab for the second summary, change the display string formula to this:
whileprintingrecords;
numbervar apne;
numbervar apnrte:= apnrte + apne*currentfieldvalue;
totext(currentfieldvalue * apne,0)
finally on the second cross-tab for the second grand total, change the display string to this:
whileprintingrecords;
numbervar apnrte;
totext(apnrte, 0)