IMetricSetServiceGenerateFormulaMetricSet Method (Guid, IEnumerableMetricSetUsage, String, PersistencePolicy)

Generates a new FormulaMetricSet entity, by using the provided formula statement. The placeholders are generated using the elements of the dependent metric set usage objects.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
FormulaMetricSet GenerateFormulaMetricSet(
	Guid parentId,
	IEnumerable<MetricSetUsage> dependencies,
	string statement,
	PersistencePolicy persistencePolicy
)

Parameters

parentId
Type: SystemGuid
The ID of the parent file or folder.
dependencies
Type: System.Collections.GenericIEnumerableMetricSetUsage
The metric set usage dependencies.
statement
Type: SystemString
The formula statement.
persistencePolicy
Type: Dundas.BI.EntitiesPersistencePolicy
A value indicating whether the entity should be created as persistent or transient.

Return Value

Type: FormulaMetricSet
A formula metric set entity.
Exceptions
ExceptionCondition
ArgumentExceptionstatement is or Empty.
ArgumentNullExceptiondependencies is .
ScriptExceptionstatement is an invalid script.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also