FlexPivot control allows users to display subtotals using various aggregate functions such as Sum, Count, Average, etc.
This can either be done at runtime through the Field Settings dialog, or in code as described in the following sections.
You can use the Subtotal property to calculate subtotals programmatically, as shown in the following code. This implementation uses the sample created in Quick Start topic.
C# |
Copy Code
|
---|---|
//Apply average subtotal to ExtendedPrice column fpEngine.Fields["ExtendedPrice"].Subtotal = Subtotal.Average; |