IMetricSetServiceAddCalculatedMeasure Method

Adds a new calculated measure to the metric set, based on the specified statement and placeholders, and saves the metric set.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
MeasureUsage AddCalculatedMeasure(
	MetricSet metricSet,
	string statement
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSetsMetricSet
The metric set.
statement
Type: SystemString
The statement.

Return Value

Type: MeasureUsage
The measure usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is .
ArgumentExceptionstatement is or Empty.
ScriptExceptionstatement is an invalid script.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also