Open this page in the API Guide

MetricSet.AddCountHierarchyMeasure Method (IHierarchyLevel)

Add a new measure, based on the count or distinct count of a specified hierarchy level members.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
public MeasureUsage AddCountHierarchyMeasure(
	IHierarchyLevel hierarchyLevel
)

Parameters

hierarchyLevel
Type: Dundas.BI.Data.Metadata.IHierarchyLevel
The hierarchy level.

Return Value

Type: MeasureUsage
The measure usage.
Exceptions
ExceptionCondition
ArgumentNullExceptionhierarchyLevel is null.
ArgumentExceptionhierarchyLevel does not belong to the underlying IAnalysisStructure.
InvalidOperationExceptionThe current operation is not supported when the metric set returns raw data.
See Also