I’m a relative newbie for building reports with Report Builder and I have been having difficulty with calculating sums properly. The problem arises with the data I need to display on the report as a summary. The data consists of all costs for each assembly, and the hour breakdown of all operations for a given job. The data is broken down like this:
JOB
Assy1 Costs
Op1 Hours
Op2 Hours
Assy2 Costs
Op1 Hours
Op2 Hours
Op3 Hours
The problem comes in when I want a sum of assembly costs. Since the query iterates through each op cost, the assembly cost comes through each time making, in the example above, the Assy1 cost double, and the Assy2 cost triple.
This was a simple thing in Crystal I could say to sum by group change and I’d get an accurate sum. I can’t seem to find an option to do that in Report Builder.
I’ve been searching the internet for a day trying to find a solution, but haven’t had any luck. I can get an accurate per assy cost by dividing the sum by countrows() for each assembly. But this only works while under the assembly group. once I step out to the job group, count rows returns, as it should, the total of all rows and is useless.
Any ideas or help would be appreciated.
Rick