Open this page in the API Guide

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

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSets.FormulaMetricSet
The formula metric set.
measure
Type: Dundas.BI.Entities.MetricSets.MeasureUsage
The measure element.
dependencies
Type: System.Collections.Generic.IEnumerable<MetricSetUsage>
The metric set usage dependencies.
statement
Type: System.String
The formula statement.

Return Value

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