Categories > TinyButStrong general >

subtotals on group change

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: yunus
Date: 2005-07-10
Time: 00:35

subtotals on group change

Is there a way to get subtotals of a column in a footer group? How would I go about doing that?
By: Skrol29
Date: 2005-07-10
Time: 20:56

Re: subtotals on group change

Hi,

You have to calculate the sub-total using a 'onsection' user function. This function has to check itself when the value of the column changes in order to intialize the total.
By: yunus
Date: 2005-07-11
Time: 08:59

Re: subtotals on group change

Yeah, that's what I did. I wanted to know if there was an easier way, since things get pretty hairy when there are many things going on in a report.
By: yunus
Date: 2007-08-23
Time: 13:10

Re: subtotals on group change

fllowup 2 years later.

onsection event is not usable with multiple headergrp since the function is called multiple times with same data when groups change. Getting the totals with a subquery in the main query is looking more and more reasonable.
By: TomH
Date: 2007-08-23
Time: 14:07

Re: subtotals on group change


You might also take a look at the "Aggregate" plugin

It's new since two years I think :)