IMetricSetServiceGenerateFormulaMetricSet(Guid, IEnumerableMetricSetUsage, IEnumerableString, PersistencePolicy) Method

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 (26.2.0.1000)
Syntax
FormulaMetricSet GenerateFormulaMetricSet(
	Guid parentId,
	IEnumerable<MetricSetUsage> dependencies,
	IEnumerable<string> statements,
	PersistencePolicy persistencePolicy
)

Parameters

parentId  Guid
The ID of the parent file or folder.
dependencies  IEnumerableMetricSetUsage
The metric set usage dependencies.
statements  IEnumerableString
The formula statements.
persistencePolicy  PersistencePolicy
A value indicating whether the entity should be created as persistent or transient.

Return Value

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