| Summing up Data field values [message #149402] | 
Thu, 30 March 2006 09:09   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: cbredesen.comerxia.com 
 
All, 
 
I'm new to BIRT and finding the report designer quite nice, and have had  
relatively little trouble constructing my report and using queries to  
populate the data.  I'm creating a standard Income Statement that pulls  
bottom-line data from at least three separate SQL queries.  By bottom-line,  
I mean that I'm letting the database give me the line items in total, not  
having BIRT sum up large amounts of data. 
 
What I'm up against is that I can't seem to get a total on the bottom of the  
report.  Using Total.sum() expects a row or some other expression that I'm  
unable to figure out.  What I kinda want is the ability to blindly sum up a  
"virtual" column without caring where the data came from.  I'll try to  
exemplify this: 
 
Query1.col1    $5 
Query1.col2    $5 
Query1.col3    $5 
Query2.col1    $3 
Query3.col1    $3 
Total                ???? 
 
I'm using a Grid to layout a 2-column arrangement for this and the actual  
values in the right column are Data objects.  Notice that multiple data  
sources and columns are used.  I can't just some up some single column from  
a single data source.  I need to sum up the Grid's second column. 
 
Can anyone help? 
 
Thanks in Advance, 
 
Chris
 |  
 |  
  | 
 | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.22296 seconds