DataHelper ReduceDataSetData Method Kentico 8.0 API Reference
Reduces the data set data. Works in two modes: 1 - remove recods (when calculateAverage is FALSE) 2 - calculate average values for the intervals (when calculateAverage is TRUE)

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

ds
Type: OnlineSystem.Data DataSet
The input dataset
keepEveryXItem
Type: OnlineSystem Int32
The keep every x-item
calculateAverage
Type: OnlineSystem Boolean
if true: calculate average value for the interval. If false: pick every X-record
columnNames
Type: OnlineSystem String
Calculate average values just for given columns (Column1;Column2..). If null, calculate for all columns of types integer and double.

Return Value

Type: OnlineDataSet
See Also