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
)
Public Function AddCalculatedMeasure (
dependencyMeasure As MeasureUsage,
usage As MetricSetUsage
) As MeasureUsage
public:
MeasureUsage^ AddCalculatedMeasure(
MeasureUsage^ dependencyMeasure,
MetricSetUsage^ usage
)
member AddCalculatedMeasure :
dependencyMeasure : MeasureUsage *
usage : MetricSetUsage -> MeasureUsage
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:
MeasureUsageThe measure usage.
Exceptions Exception | Condition |
---|
ArgumentNullException | dependencyMeasure or usage is . |
ArgumentException | dependencyMeasure 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