I need to create a calculation using object A and object b. Assume 10 rows of data. the basic fomula is: [(A1/SUM(A1...A10))*B1] + [(A2/SUM(A1...A10))*B2] + [(A3/SUM(A1...A10))*B3] + ....[(A10/SUM(A1...A10))*B10] = answer. Is there a way using SQL (or Business Objects) to create, a subquery maybe, that will be able to use (pass as a variable, possibly) the SUM of object a1 through a10 to another query? Any suggestions are GREATLY appreciated! Thanks in advance for any feedback.