This is a migrated thread and some comments may be shown as answers.

AVG

1 Answer 110 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Rubens
Top achievements
Rank 1
Rubens asked on 14 Oct 2016, 02:49 PM

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

Sort by
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
Tags
Report Designer (standalone)
Asked by
Rubens
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or