IMetricSetServiceAddCalculatedHierarchy Method

Adds a new calculated hierarchy to the metric set, based on the specified statement and placeholders, and saves the metric set.

Namespace: Dundas.BI.Entities.MetricSets
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
HierarchyUsage AddCalculatedHierarchy(
	MetricSet metricSet,
	string name,
	string description,
	string statement,
	PlacementPosition position
)

Parameters

metricSet  MetricSet
The metric set.
name  String
The name of the calculated hierarchy.
description  String
The description of the calculated hierarchy.
statement  String
The statement.
position  PlacementPosition
The PlacementPosition for the calculated hierarchy.

Return Value

HierarchyUsage
The hierarchy usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is .
ArgumentExceptionstatement is or Empty.
ScriptExceptionstatement is an invalid script.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also