Sum by Group

Class->sum_group_by()

Like the count_group_by method, you can select groups of sums from a MT::Object store.

my $iter = MT::Foo->sum_group_by($terms, {%args, group => $group_exprs,
    avg => 'property_to_sum' })
This page was last updated on 2008-10-01, 17:07.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.