PivotLabels collection, XCategory object, ZCategory object
Returns or sets aggregate statistical functions. This property takes a BqSortFunction group value, which duplicates the data functions available in the Pivot and Chart sections. Use this property with SortByFact (Method) which enables you to sort by a numeric data item.
The BqSortFunction group constant has these values:
This example shows how to sort values based on the average statistical function:
ActiveDocument.Sections["Pivot3"].SideLabels["Product Name"].SortFunction= bqSortFunctionAverage