I checked the code snippet and I am not seeing any code related to aggregate functions. May I ask you to share some more information on how have you defined those functions?
Generally there is an option to directly add AggregateFunctions
for the specific GroupDescritor through its descriptor.AggregateFunctions collection.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.