Chart and Pivot Facts objects, TargetFact object
Returns aggregate values that summarize groupings of data when applied to Chart, Pivot, gauges and (Live) Chart facts. From the user interface, data functions are available from the short cut menu and Chart and Pivot menus only if fact values are selected.
Use data functions to show the kind of values represented in Chart and Pivot reports, such as total, average, and maximum product sale by Quarter. You can use these data functions for Pivot and Chart Facts:
The DataFunction property uses the BqDataFunction constant group, which consists of these values:
This example shows how to set the Product Line TopLabels column in the Pivot section to the average data function:
ActiveDocument.Sections["SalesPivot"].TopLabels["Product Line"].Totals[2]. DataFunction=bqDataFunctionAverage