Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Group Total in Group Header
Group Total in Group Header [message #161594] Tue, 16 May 2006 19:27 Go to next message
floor is currently offline floor
Messages: 93
Registered: July 2009
Member
Is there a way to calculate a total in a group from a particular field and
display that total in the group header?

Normally, I would just create a javascript variable, add the field to the
variable on every row, and then reset it at the end of the group, but this
isn't going to work if I want the total in the group header...

Hopefully that makes sense,

floor
Re: Group Total in Group Header [message #161602 is a reply to message #161594] Tue, 16 May 2006 19:41 Go to previous message
floor is currently offline floor
Messages: 93
Registered: July 2009
Member
Nevermind, sorry about the stupid post. found it: To calculate a total for
a particular field in a group use

Total.sum(row["aRow"], null, 1);

Replace null with a filter if you want, and 1 with the group level for your
particular total.

--floor

"floor" <floorflux@hotmail.com> wrote in message
news:e4d98a$dnl$1@utils.eclipse.org...
> Is there a way to calculate a total in a group from a particular field and
> display that total in the group header?
>
> Normally, I would just create a javascript variable, add the field to the
> variable on every row, and then reset it at the end of the group, but this
> isn't going to work if I want the total in the group header...
>
> Hopefully that makes sense,
>
> floor
>
Previous Topic:BIRT Viewer
Next Topic:Is it possible to intergrate birt with SWT?
Goto Forum:
  


Current Time: Fri Oct 31 14:31:34 GMT 2014

Powered by FUDForum. Page generated in 0.01916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software