Skip to main content

Measure Class

A measure which is a DataItem whose values are summarized before they are used in the dashboard.

Declaration

export class Measure extends DataItem
See Also

constructor

Initializes a new instance of the Measure class.

Declaration

constructor(
    dataItemJSON?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

Parameters

Name Type Description
dataItemJSON any
serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

calculation Property

Declaration

calculation: DevExpress.Dashboard.Model.Calculation

Property Value

Type
Calculation

expression Property

Declaration

expression: ko.Observable<string>

Property Value

Type
Observable<string>

filterString Property

Declaration

filterString: ko.Observable<string>

Property Value

Type
Observable<string>

summaryType Property

Declaration

summaryType: ko.Observable<DevExpress.Dashboard.Model.SummaryType>

Property Value

Type
Observable<SummaryType>

windowDefinition Property

Declaration

windowDefinition: DevExpress.Dashboard.Model.WindowDefinition

Property Value

Type
WindowDefinition

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.

grabFrom(dataItem) Method

Declaration

grabFrom(
    dataItem: Measure
): void

Parameters

Name Type
dataItem Measure

isDefinitionEquals(dataItem) Method

Declaration

isDefinitionEquals(
    dataItem: DevExpress.Dashboard.Model.DataItem
): boolean

Parameters

Name Type
dataItem DataItem

Returns

Type
boolean