IMetricSetServiceAddFormulaFromDataCube Method

Adds a calculated measure from a formula already defined in the underlying data cube.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax
MeasureUsage AddFormulaFromDataCube(
	MetricSet metricSet,
	string uniqueName,
	DataCube dataCube = null
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSetsMetricSet
The metric set.
uniqueName
Type: SystemString
The unique name of the formula definition.
dataCube (Optional)
Type: Dundas.BI.Entities.DataCubesDataCube
The data cube the formula is in.

Return Value

Type: MeasureUsage
The measure usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is .
ArgumentExceptionuniqueName is or Empty.
ScriptExceptionformula definition has an invalid script.
InvalidSessionExceptionThe caller context is not associated with a valid session.
InvalidOperationExceptionThe formula contains invalid element references.
NotFoundExceptionThe formula definition not found with given uniqueName.
See Also