2004 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: tbo2010 - cst1901 adding a variable to itself 2004-08-02 17:41 Hello.. This is an example of the subreport I desire. Name Hours Amount Expense RK 0.60 45.00 0.00 TW 25.50 1912.50 102.50 Totals 26.10 1957.50 102.50 I need to groupby name, add the hours etc. to get a subtotal per name and generate a final total. I dont really understand how to make the group by work in iReports as well, how do you keep adding the hours variable together to get the total ie. new Double($V{hours}.doublevalue) + ??????? Thank you TB By: Giulio Toffoli - gt78 RE: adding a variable to itself 2004-08-03 03:02 Use a variable. The expression of a variable is evaluated on each new record. Use builtin variable functions to perform sum or count. Use a variable for the total (alias reset time = report), and a different variable for subtotals (alias reset time to group). Giulio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now