How to calculate value? [message #19756] |
Thu, 17 March 2005 02:39  |
Eclipse User |
|
|
|
Hi,
I read the tutorial and already made a report by BIRT system. It's quite
amazing that making a html report is so easy. But when I try to sum up a
column to get a number such as the total value , I don't know what's the
next step?
Ex:
Name Salary
ABC $10,000
BCD $ 2,000
-------------------------
Total $12,000 <--- How can I obtain this number?
Can anyone tell me how to do so? Thanks a lot!!
Andy
|
|
|
Re: How to calculate value? [message #19865 is a reply to message #19756] |
Thu, 17 March 2005 05:07  |
Eclipse User |
|
|
|
Hi Andy,
The following example will give you the hint to sum up a column.
Eg. The Data item containing Salary information is row["salary"],
The sum of salary will be Total.sum(row["salary"])
Enjoying your time with BIRT!
Nina
Andy wrote:
> Hi,
> I read the tutorial and already made a report by BIRT system. It's quite
> amazing that making a html report is so easy. But when I try to sum up a
> column to get a number such as the total value , I don't know what's the
> next step?
> Ex:
> Name Salary
> ABC $10,000
> BCD $ 2,000
> -------------------------
> Total $12,000 <--- How can I obtain this number?
> Can anyone tell me how to do so? Thanks a lot!!
> Andy
|
|
|
Powered by
FUDForum. Page generated in 0.33696 seconds