t27duck / active_reporting

OLAP-like DSL for ActiveRecord-based reporting
MIT License
136 stars 19 forks source link

Support for weighted Average #36

Open bazooka720 opened 4 years ago

bazooka720 commented 4 years ago

Wondering if the aggregations can support weighted averages>

t27duck commented 4 years ago

The library currently does not. All calculations are done on the SQL level, so something would have to be written to describe how the averages are weighted and translate that into pure SQL. I do not think there is a generic way of doing that.