AddTotal (Method)

Applies To:

OLAPLabel object (TopLabels and SideLabels object)

Description:

Creates an additional column containing the totals for a top or side label.

Syntax:

Expression.AddTotals()

Expression Required:

An expression that returns a PivotLabel object

Example:

This example shows how to total the side label columns called Year:

ActiveDocument.Sections["OLAPQuery"].TopLabels["Year"].AddTotal()