IMetricSetServiceUpdateFormulaMetricSet Method

Updates the statement for the specified measure element of a FormulaMetricSet, using the provided formula statement. New placeholders are generated using the elements of the dependent metric set usage objects. Existing placeholders are not modified, while placeholders with captions not found in the statement are removed.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
FormulaMetricSet UpdateFormulaMetricSet(
	FormulaMetricSet metricSet,
	MeasureUsage measure,
	IEnumerable<MetricSetUsage> dependencies,
	string statement
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSetsFormulaMetricSet
The formula metric set.
measure
Type: Dundas.BI.Entities.MetricSetsMeasureUsage
The measure element.
dependencies
Type: System.Collections.GenericIEnumerableMetricSetUsage
The metric set usage dependencies.
statement
Type: SystemString
The formula statement.

Return Value

Type: FormulaMetricSet
The update formula metric set entity.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet, measure or dependencies is .
ArgumentExceptionstatement is or Empty.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also