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

Pivot AggregateDescriptions Average TimeSpan

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Galina
Top achievements
Rank 1
Galina asked on 21 Jun 2018, 12:06 PM

Could you help me to understand what I need to do in order to 'duration gross' field calculate average TimeSpan

I attached a couple of pictures what I did already.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 22 Jun 2018, 10:12 AM
Hi Artem,

Thank you for writing.

You can create a custom aggregate function which will be responsible to perform the calculations with the TimeSpan values. I am also attaching a sample implementation for summing the minutes. A similar approach can be utilized to make other aggregations as well. I am also attaching a screenshot showing the result on my end.

I hope this information was useful. Let me know if you have other questions.


Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Galina
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or