FormulaMetricSetAddCalculatedMeasure Method (MeasureUsage, MetricSetUsage)

Add a new measure to the current instance. The measure must belong to one of the already defined dependencies.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax
public MeasureUsage AddCalculatedMeasure(
	MeasureUsage dependencyMeasure,
	MetricSetUsage usage
)

Parameters

dependencyMeasure
Type: Dundas.BI.Entities.MetricSetsMeasureUsage
The dependency measure usage for the measure to be added.
usage
Type: Dundas.BI.Entities.MetricSetsMetricSetUsage
The dependency metric set usage.

Return Value

Type: MeasureUsage
The measure usage.
Exceptions
ExceptionCondition
ArgumentNullExceptiondependencyMeasure or usage is .
ArgumentExceptiondependencyMeasure already belongs to the current instance or dependencyMeasure does not belong to the specified usage or usage is not a dependency for the current instance.
See Also