Conditional aggregate [message #258052] |
Fri, 12 October 2007 08:50  |
Eclipse User |
|
|
|
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 15:49  |
Eclipse User |
|
|
|
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,
>
|
|
|
Powered by
FUDForum. Page generated in 0.04687 seconds