|
|
Question : Reporting Services 2005 - Matrix Report Group By Two Fields
|
|
Hello Experts!
For creating a report using VS 2005, there's a weekly summary report where I need the following example output from a reservation database: I did it it with a Matrix Report but Im not getting how to do the second (inner) group by: Heres how I designed the Report: Drag a list control onto the report, right click it and go to properties. There is a button called Edit Detail Grouping and I Click this and change what the list effectively repeats on. In my case it needs to be the EventDate. Now I need to show the date, by dragging the EventDate field from the dataset explorer bar to the list. Now I create a matrix inside the list control, by dragging the matrix control from the toolbox into the list control. In the matrix, I drag the start and end time fields into the data cells and drag the column headers into the column cells. The first Group By is by Date and the Second Group By is by Reservation_ID since a single date can have multiple rooms for Reservation.
Im only getting one event per day of the week; I dont know where I would put the second group by which is by reservation_ID.
Heres what Id like to get for output:
Events: Monday - Sunday
Monday, Dec. 24th, 2007 ResID StartTime EndTime Location Host 1 8a.m. 10a.m. Convention Hall Joe 1 8a.m. 10a.m. Concourse Jim 2 10a.m. 12p.m. Gym Al 2 10a.m. 2p.m. Gym Theresa
Tuesday, Dec. 25th, 2007 ResID StartTime EndTime Location Host 1 8a.m. 10a.m. Main Hall Jose 2 8a.m. 10a.m. Concourse John 2 10a.m. 12p.m. Gym Albert 2 10a.m. 2p.m. Gym Tom etc.
Thanks in advance for your help!
|
Answer : Reporting Services 2005 - Matrix Report Group By Two Fields
|
|
There's a couple of points to note here 1) It looks like you should be using a table, not a matrix. Each column is a different field, a matrix is used for when you want the columns to be different values from the same field. 2) You can't group by Reservation_ID as it is not unique to your displayed rows. From looking at your required results, you would need to group by reservation_id, Location and Host (all in the same grouping). You don't need to group the table by date, as that is taken care of by the list control.
Try the above and see if making these changes fixes things, if it doesn't please let me know
|
|
|
|
|