@aggregate(_('Sum of'))
def aggregate_sum(items, col):
    return sum(getattr(item, col) for item in items)
Function to use on Group by Charts.
dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/models/group.py/aggregate_sum