Open this page in the API Guide

IMetricSetService.AddCalculatedMeasure 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 (25.1.0.1000)
Syntax
MeasureUsage AddCalculatedMeasure(
	MetricSet metricSet,
	string statement
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSets.MetricSet
The metric set.
statement
Type: System.String
The statement.

Return Value

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