I think I remember how it was done in Crystal Reports ....
Can you put the code in the field and then take avg of this new field?
Field 1 → the code behind: (DateDiff ("n", FIRST (Fields! Date.Value), LAST (Fields! Date.Value, "grp_Order")))
Field 2 → code behind: AVG (field 1).
I would suggest that field 2 can only exist @ at the end of the group in which field 1 exists.
source
share