Click or drag to resize
DataHelperReduceDataSetData Method
Reduces the data set data. Works in two modes: 1 - remove records (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: 10.0.0
Syntax
C#
public static DataSet ReduceDataSetData(
	DataSet ds,
	int keepEveryXItem,
	bool calculateAverage,
	string columnNames
)

Parameters

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

Return Value

Type: DataSet
See Also