subtotal and subaverage

Hello,

I want to have a subtotal column AND a subaverage column (or n total columns) like the one in the following example - but without the extra Avg column in the Data area.

How to do that?

2000

Q. 2

April
Avg
May
Avg
June
Avg
Total

Avg

North
4800
4800
5708
5708
5580
5580
16088

5363

South
3238
3238
3637
3637
3527
3527
10402

3467

West
1699
1699
1687
1687
1614
1614
5000

1667

Thank you!

[3875 byte] By [djmdzq9] at [2008-1-7]
# 1
The best you can do at this time with a matrix is hide the unwanted AVG header and associated cell. You can do this by setting the Visibilty property of the AVG header and cell to an expression that checks the current scope against that of the parent dynamic group. In this case the parent dynamic group is the Month column group. Subtotals do not have the same parent dynamic group as the normal associated cells. In this case the subtotals are not scoped within the Month column group, like the AVG header and cell, but within the Quarter column group).
Here is the exression to use, make sure the change the string to the actual name of the appropriate column grouping.

=InScope("Month_Column_Group_Name")

Ian

IanRoof-MSFT at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 2

Thank you Ian, that helped.

Do you know how to remove the now empty column's?

2000

Q. 2

April
May
June
Total

Avg

North
4800
5708
5580
16088

5363

South
3238
3637
3527
10402

3467

West
1699
1687
1614
5000

1667

So that it look's like this?

2000

Q. 2

April
May
June
Total

Avg

North
4800
5708
5580
16088

5363

South
3238
3637
3527
10402

3467

West
1699
1687
1614
5000

1667

djmdzq9 at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 3
You can set the width of the MatrixColumn to 0.
IanRoof-MSFT at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 4

Yes, but than the width of the Avg-column will also be 0.

Or is it possible to do it conditionally at runtime?

djmdzq9 at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 5

Hi djmdzq9,

I Have the same problem now.

Do you have a solution that width of the average-column is not 0?

Thanks.

GROTH at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 6

Hi Groth,

sorry, but I didn't find a solution.

djmdzq9 at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 7

What you may be able to do instead is to use only one cell for the data and one for the header. Each cell contains a rectangle that contains two textboxes, one for the subtotal and one for the subaverage. And instead of hiding the header and associated cell, just hide the subaverage textboxes in the rectangles, using the InScope() function, as before.

Ian

IanRoof-MSFT at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 8

I have tried to use rectangle, but this solution still leave a big blank. I don't think it works

I think the only possible way is overlapping two matrix, just show the total value for the behind matrix. however, using this approach will cause the format of exporting to Excel is not correct. but it works very well if you don't export it.

I don't know.. can't anybody

vs.wu at 2007-10-2 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...

SQL Server

Site Classified