Pivot AggregateDescriptions Average TimeSpan

2 posts, 0 answers
  1. Artem
    Artem avatar
    3 posts
    Member since:
    Apr 2017

    Posted 21 Jun 2018 Link to this post

    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.

  2. Hristo
    Hristo avatar
    1522 posts

    Posted 22 Jun 2018 Link to this post

    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.

    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.
Back to Top