There is a potential issue with the average aggregation function (averageAggregate
) in KendoReact PivotGrid when using Local Data Binding. There are inconsistencies in the calculated averages depending on the dataset size.
For example:
For the dataset containing the values 3.80, 4.50, 4.50, 4.20, 4.50, the PivotGrid correctly displays the average as 4.3.
However, for the dataset containing 3.22, 3.80, 3.52, 2.17, 2.30, 4.50, 1.40, 3.70, 2.69, 2.61, 3.08, 4.50, 2.51, 3.48, 4.20, 3.40, 4.50, 2.81, 2.19, the PivotGrid displays an average of 2.90, whereas the correct value should be approximately 3.19.
I am using Local Data Binding for this PivotGrid, and the incorrect average appears particularly with larger datasets. This discrepancy significantly affects the reliability of the component in our application.
Please investigate if there is a known issue with average calculations, particularly in Local Data Binding scenarios.