This question logically came up after this question - How to find a separate attribute among the records and form a separate collection on it?
I need to calculate the ave