Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Conditional aggregate
Conditional aggregate [message #258052] Fri, 12 October 2007 12:50 Go to next message
Eclipse UserFriend
Originally posted by: rwojtowicz.dfqs.pl

Hi,
I have problem with a report which worked well in older BIRT. I had a data
field which had value depending on a parameter. If parameter had value
"true", data field had a function total(count()) and if it was "false",
data field had total(max()). Is it possible to make such conditional
aggregate in birt 2.2?

thanks,
Re: Conditional aggregate [message #258206 is a reply to message #258052] Fri, 12 October 2007 19:49 Go to previous message
Rima Kanguri is currently offline Rima KanguriFriend
Messages: 110
Registered: July 2009
Senior Member
Yes its possible.

In BIRT 2.2 we have tried to make the aggregation UI more easy to use.

Steps to create conditional aggregate in birt 2.2 would be
- Go the binding and define the required aggregations by clicking on 'Add
Aggregation' button.
Note each binding corrsponds to one function
- Next add a data item from palette and specify the condition expression, in
your case it would be if parameter has value "true" use the value
'aggregation1'
else if valeu = "false" use the value 'aggregation2'

--Rima Kanguri


"Rafal Wojtowicz" <rwojtowicz@dfqs.pl> wrote in message
news:41feb976c320522127e39f11795212e6$1@www.eclipse.org...
> Hi,
> I have problem with a report which worked well in older BIRT. I had a data
> field which had value depending on a parameter. If parameter had value
> "true", data field had a function total(count()) and if it was "false",
> data field had total(max()). Is it possible to make such conditional
> aggregate in birt 2.2?
>
> thanks,
>
Previous Topic:Designer: Derive Column Header Name Dynamically
Next Topic:Birt Report : Preview doesn't show up
Goto Forum:
  


Current Time: Tue Jul 16 10:41:47 GMT 2024

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

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

Back to the top