CalculatedField with count function

2 posts, 0 answers
  1. Sigsa
    Sigsa avatar
    4 posts
    Member since:
    Jun 2009

    Posted 19 Aug 2014 Link to this post

    Hello Everyone,

    I have a problem when I try to extend a custom class from CalculatedField. I need to add a custom formula: the count of fieldA / sum of fieldB, but both always return the sum function, not the count for the first field.

    protected override Telerik.Pivot.Core.Aggregates.AggregateValue CalculateValue(IAggregateValues aggregateValues)
       var aggregateA = aggregateValues.GetAggregateValue(this.fieldA); //I need the count function here
       var aggregateB = aggregateValues.GetAggregateValue(this.fieldB); //and the sum function here

    I will appreciate any sort of help greatly! 
  2. Kalin
    Kalin avatar
    1189 posts

    Posted 20 Aug 2014 Link to this post

    Hi Sigsa,

    I noticed you have posted the same questions in this thread. I have already answered you, so you can check my there.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top