You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if there is null or other non-numeric value in the last row, result of average aggregate will be null
if there are some null or other non-numeric value in rows between numeric values, result of average aggregate will be incorrect number
Expected behavior
The best would be if average ignores non-numeric values in presence of numeric (and it can use last non-numeric if there were no numeric values at all)
Minimal reproduction of the problem with instructions
I'm submitting a...
Current behavior
null
or other non-numeric value in the last row, result ofaverage
aggregate will benull
null
or other non-numeric value in rows between numeric values, result ofaverage
aggregate will be incorrect numberExpected behavior
The best would be if
average
ignores non-numeric values in presence of numeric (and it can use last non-numeric if there were no numeric values at all)Minimal reproduction of the problem with instructions
The sandbox ( forked from https://www.telerik.com/kendo-react-ui/components/grid/grouping/grouping/ )
https://stackblitz.com/edit/react-6oe2cf?file=app%2Fmain.jsx
https://react-6oe2cf.stackblitz.io
Please check Average Unit Price for "Beverages" and "Condiments"
What is the motivation or use case for changing the behavior?
Sometimes data has items "with value" and "without value" mixed; but it still makes sense to calculate Average for items having value :)
Environment
Browser:
System:
Suggested solution
the piece of code which I would suggest for "Average" aggregate:
The text was updated successfully, but these errors were encountered: