IMetricSetServiceGenerateFormulaMetricSet Method (Guid, IEnumerableMetricSetUsage, IEnumerableString, PersistencePolicy)

Generates a new FormulaMetricSet entity, by using the provided formula statements. 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 (24.3.0.1000)
Syntax
FormulaMetricSet GenerateFormulaMetricSet(
	Guid parentId,
	IEnumerable<MetricSetUsage> dependencies,
	IEnumerable<string> statements,
	PersistencePolicy persistencePolicy
)

Parameters

parentId
Type: SystemGuid
The ID of the parent file or folder.
dependencies
Type: System.Collections.GenericIEnumerableMetricSetUsage
The metric set usage dependencies.
statements
Type: System.Collections.GenericIEnumerableString
The formula statements.
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
ArgumentExceptionstatements contains no valid statements.
ArgumentNullExceptiondependencies or statements is .
ScriptExceptionstatements contains invalid scripts.
QuotaExceededExceptionGenerating the metric set would cause the entity quota for metric sets or one of the underlying entity types to be exceeded.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also