Hi
Insert a Group on Delivery code so that it will show all Delivery 1234 at one place. (i.e.) one after the other.
Now write the following formulas :
@init_Cost1// Place this formula on group header
Whileprintingrecords;
numbervar cost1;
cost1:=0;
@init_Cost2 // Place this formula on group header
Whileprintingrecords;
numbervar cost2;
cost2:=0;
@Increment_Cost1
Whileprintingrecords; // Place this on Cost detail 1
numbervar cost1;
cost1:=cost1+1;
@Increment_Cost2
Whileprintingrecords; // Place this on Cost detail 2
numbervar cost2;
cost2:=cost2+1;
Now go in Section expart and suppress formula editor and give the following condition
This will suppress the cost 1 & 2 for all delivery codes which are displyed more than once.