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.
I will appreciate any sort of help greatly!
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!