Hi Jonathan,
Try modifying Graham's 2nd formula to:
WhilePrintingRecords;
stringvar array z;
numbervar x:=x + 1;
if not({@formula field outputting LOX or CG} in z) and {@formula field outputting LOX or CG} <> ""
then
(
redim preserve z[x];
z[x]:= {@formula field outputting LOX or CG};
)
-Abhilash