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 (26.2.0.1000)
Syntax
FormulaMetricSet UpdateFormulaMetricSet(
	FormulaMetricSet metricSet,
	MeasureUsage measure,
	IEnumerable<MetricSetUsage> dependencies,
	string statement
)

Parameters

metricSet  FormulaMetricSet
The formula metric set.
measure  MeasureUsage
The measure element.
dependencies  IEnumerableMetricSetUsage
The metric set usage dependencies.
statement  String
The formula statement.

Return Value

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