I have a report that shows the date, I want to take an average, but when using Avg (date) error
I have a report that shows the date, I want to take an average, but when using Avg (date) error
1 Answer, 1 is accepted
0
Peter
Telerik team
answered on 19 Oct 2016, 08:09 AM
Hi Rubens,
The Avg aggregate works only with number types. If you want to use it with a date type. Consider converting the date to int for use in the aggregate and then back date from the aggregate result. Another option is to create your own aggregate as elaborated in User Aggregate Functions help article.
Regards,
Peter
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items