Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsHi,
I have a problem with summing a table in SQL 2005 Reporting Services. The data as per below:
Office Total Cost Dept Individual cost
Office 1
10500 HR 1200
10500 Sales 1600
10500 IT 1800
4600
43.81
Office 2 12000 HR 1500
12000 Sales 1250
12000 IT 7000
9750
81.25
As you can see, the above table lists the total cost per office and then breaks it down into the HR, Sales and IT depts. The costs of these three depts are then summed and calculated as a percentage of the total cost. My problem comes in when trying to calculate the grand total and percentage. The summing of the Individual cost works fine, but the summing of the total cost is incorrect. It does not sum the total value per office, it sums every value in the column (the total should be 10500+12000 but the report calculates it as 10500*3 + 12000*3). Unfortunately I can't fix this on a query level because of the data structure and I've tried grouping etc. in the report but I still get the same result. I need to do a sort of "sum first total cost value per office". Any ideas on how to this this report? Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: patriktPosted on 2007-07-12 at 01:04:40ID: 19469606
Comments are available to members only. Sign up or Log in to view these comments.