New to Kendo UI for Angular? Start a free 30-day trial


Represents the PivotGrid aggregate object. Applicable for local data binding.

const sumAggregate: Aggregate = {
    init: (data) => { data.sum = ('sum' in data) ? data.sum : 0; },
    accumulate: (data, value) => { data.sum += value; },
    merge: (src, dest) => { dest.sum += src.sum; },
    result: data => data.sum,
    format: (value: number) => value.toFixed(2)


(data: any, value: any) => void

The accumulate function will be called for every value that needs to be aggregated.


(value: any) => string

The format function will be called when the value returned from the result function needs to be formatted.


(data: any) => void

The init function initializes the variable where the aggregated data will be stored and returns it in the passed data object. The init function will be called every time before calling accumulate and merge functions.


(src: any, dest: any) => void

The merge function will be called when two aggregated data objects needs to be merged into one.


(data: any) => any

The result function will be called when the aggregated value needs to be extracted from the data object.

In this article

Not finding the help you need?