Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do a single column sum of values in BIRT

Tags:

birt

I have a problem here.

I am working on an invoice template using BIRT. I have a table column qty, unit price and amount (unit price * qty). At the table footer, I want to compute the total amount like how excel does its column sum of values. How do I go about doing this?

like image 568
Moses Liao GZ Avatar asked Mar 23 '13 13:03

Moses Liao GZ


2 Answers

In the table footer, add a Data. Then, in Data Binding, on Expression:

Total.sum(dataSetRow["yourRow"])

like image 54
Pablo Avatar answered Oct 09 '22 01:10

Pablo


Firstly, Insert a Data element in a grid from a palete where you want the sum. Then right click on that data element in your report and click on 'Change data Column' Select Dataset which have columns 'qty' and 'unit cost' etc. then click on Add Aggregation in this select datatype float and function sum and add expression in which set datarow(name of column) of which you want sum.

like image 34
Reetika Avatar answered Oct 08 '22 23:10

Reetika