Actions
Feature #2749
closedxmera Omnia - Collection #2147: Allow further calculations for issues
Add an average function ignoring nil values
Start date:
12/17/2024
Due date:
12/17/2024
% Done:
100%
Estimated time:
Compatible Redmine Version:
5.1.z
Pull Request Link:
Description
The average function should ignore nil values in two ways:
- nil values should not count in the sum, i.e., use
values.compact
before summing up - the size should depend on
values.compact.size
Names for this kind of average could be
- compact_average
- average_without_nil
- filtered_average
- net_average
- null_filtered_average
- net_of_nil_average
- average_net_of_nil
- average_net_of_unset
- average_without_unset
Actions