all groups > sql server reporting services > november 2006 >
You're in the

sql server reporting services

group:

Group Totals



Group Totals Tim.
11/22/2006 10:31:37 AM
sql server reporting services: Can some one help me with totaling a group value on SQL Server
Reporting Services report? Here is a simplified version of what I am
struggling with:

Let's say I have an SQL statement that returns the flowing set

RoomID Max Occupants Name
1 3 Bill Clinton
1 3 Hilary Clinton
1 3 Chelsea Clinton
2 4 George W Bush
2 4 Barbara Bush

Total 7 5

I have a report with a group that groups rooms, shows the max occupants
on the header of each group and lists the current occupants underneath
each group header. On the bottom I want to show the total number of
occupants the rooms could have and the number of spots currently
occupied, 7 and 5 in my example. What do I need to do to show 7 on the
bottom of the report? It looks simple and I have done this many times
on different report writers but for some reason I have trouble figuring
out what to do on RS report.

Any help is appreciated.

Tim.
RE: Group Totals William
11/22/2006 12:58:01 PM
Group by room ID and then add the First(Fields!occupants.value) from each
group.

[quoted text, click to view]
AddThis Social Bookmark Button