IMetricSetServiceAddTotalsCalculationRule(MeasureUsage, String, Boolean, Boolean) Method

Adds the totals calculation rule for the specified measure element.

Namespace: Dundas.BI.Entities.MetricSets
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
MeasureUsage AddTotalsCalculationRule(
	MeasureUsage measureUsage,
	string statement,
	bool useDetailLevel,
	bool isGrandTotalOnly
)

Parameters

measureUsage  MeasureUsage
The measure usage element.
statement  String
The expression statement.
useDetailLevel  Boolean
If set to then the computations use data returned for the hierarchy detail levels.
isGrandTotalOnly  Boolean
If set to the computations are performed for the grand totals only, while the subtotals continue to use standard aggregators.

Return Value

MeasureUsage
The updated measure usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptionmeasureUsage is .
ArgumentExceptionstatement is either or empty.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also