Version

AggregateMeasure Event

Occurs when data for a Measure is aggregated, providing a way for the developer to override the default aggregation function.
Syntax
'Declaration
 
Public Event AggregateMeasure As AggregateMeasureHandler
public event AggregateMeasureHandler AggregateMeasure
Event Data

The event handler receives an argument of type AggregateMeasureEventArgs containing data related to this event. The following AggregateMeasureEventArgs properties provide information specific to this event.

PropertyDescription
Column Returns the index of the column associated with the data to be aggregated.
Handled Returns or sets a boolean value indicating whether this event was handled.
Items Returns a System.Collections.IEnumerable implementation which contains the list of items to be aggregated.
Measure Returns a reference to the Measure associated with the data to be aggregated.
MeasureDescriptor Returns a reference to the MeasureDescriptor associated with the data to be aggregated.
Row Returns the index of the row associated with the data to be aggregated.
Validate Returns or sets a boolean value indicating whether the Value should be evaluated by the associated MeasureDescriptor to determine whether a conversion is possible.
Value Returns or sets a value which represents the result of the aggregation function.
Remarks

This event provides a way to execute a custom aggregation function.

A listener must set the Handled property of the event arguments class to true to bypass default aggregation.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also