Hi,
I have data that is grouped.
Batch_Ids are grouped by recipe.
inside that group timestamps are grouped by Batch_ID.
I have a formula which gets the number of seconds between the first and last timestamp for each batch_ID group. It is displayed in the batch_ID group header.
this is the formula
Now in the Recipe group header I wish to display the sum of the formula results from the batch_Id subgroup.
Does that make sense?
Crystal will not let me insert a sum on the formula?
I can not just use the same datediff formula for max and min timestamp by conditional field recipe as there is dead time between batches I do not wish to count.
thanks
mark
I have data that is grouped.
Batch_Ids are grouped by recipe.
inside that group timestamps are grouped by Batch_ID.
I have a formula which gets the number of seconds between the first and last timestamp for each batch_ID group. It is displayed in the batch_ID group header.
this is the formula
Code:
whileprintingrecords;
dateTimeVar x:= Minimum
({Mixed_Material_Weighments.tstamp},{Mixed_Material_BatchRef.Batch_ID});
dateTimeVar y:= Maximum
({Mixed_Material_Weighments.tstamp},{Mixed_Material_BatchRef.Batch_ID});
numberVar totalSeconds:=DateDiff ("s",x ,y);
Now in the Recipe group header I wish to display the sum of the formula results from the batch_Id subgroup.
Does that make sense?
Crystal will not let me insert a sum on the formula?
I can not just use the same datediff formula for max and min timestamp by conditional field recipe as there is dead time between batches I do not wish to count.
thanks
mark