A Sandcastle Documented Class Library

# IMetricSetService AddTotalsCalculationRule Method (MeasureUsage, CellsetAxis, String, Boolean, Boolean)

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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    MeasureUsage AddTotalsCalculationRule(
    	MeasureUsage measureUsage,
    	CellsetAxis axis,
    	string statement,
    	bool useDetailLevel,
    	bool isGrandTotalOnly
    )

    Function AddTotalsCalculationRule (
    	measureUsage As MeasureUsage,
    	axis As CellsetAxis,
    	statement As String,
    	useDetailLevel As Boolean,
    	isGrandTotalOnly As Boolean
    ) As MeasureUsage

    MeasureUsage^ AddTotalsCalculationRule(
    	MeasureUsage^ measureUsage,
    	CellsetAxis axis,
    	String^ statement,
    	bool useDetailLevel,
    	bool isGrandTotalOnly
    )

    abstract AddTotalsCalculationRule :
            measureUsage : MeasureUsage *
            axis : CellsetAxis *
            statement : string *
            useDetailLevel : bool *
            isGrandTotalOnly : bool -> MeasureUsage

#### Parameters

measureUsage
  Type: Dundas.BI.Entities.MetricSets
  MeasureUsage
  The measure usage element.
axis
  Type: Dundas.BI.Data.Metadata
  CellsetAxis
  The axis for the calculation.
statement
  Type: System
  String
  The expression statement.
useDetailLevel
  Type: System
  Boolean
  If set to
  then the computations use data returned for the hierarchy detail levels.
isGrandTotalOnly
  Type: System
  Boolean
  If set to
  the computations are performed for the grand totals only, while the subtotals continue to use standard aggregators.

#### Return Value

Type: MeasureUsage
The updated measure usage element.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | measureUsage is .
ArgumentException | statement is either or empty.
ArgumentException | axis is not a valid CellsetAxis value.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IMetricSetService Interface
AddTotalsCalculationRule Overload
Dundas.BI.Entities.MetricSets Namespace