martsberger / django-pivot

A module for pivoting Django Querysets
MIT License
209 stars 16 forks source link

Cumulative aggregation #31

Open martsberger opened 11 months ago

martsberger commented 11 months ago

It might be useful to some people to have the aggregation be cumulative.

From issue #5 (PJCampi) It would be fairly easy to allow for cumulative aggregation as well, which can be useful. It can be done using the window function (+distinct):

window = Window(aggregator(data), order_by=row)

This would be a feature or option in addition to the current aggregation.