The FlexPivot control allows users to calculate average or sum of the data displayed on the FlexPivotGrid control. This can be done both at runtime as well as in code.
Consider a scenario where the user wants to find the average price for a group of products, taking into account the quantity of each purchased product. You can weigh the price average by the number of units purchased.
Use the WeightField property to specify the field to be used as weight. The code given below uses Quantity field as the Weight.