Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scope question for a sum

Status
Not open for further replies.

jymm

Programmer
Apr 11, 2002
707
US
I have a matrix where I have multiple Row AND column groups

the rows are grouped by Quarter & Month. The Columns by product and packaging.

What I want is something like this:

Product A
Bags Bulk
Q1 Jan 100 200
33% 66%
Feb 300 400
43% 57%

the problem is getting the scope for the sum of the denomonator of the percentage. I do a
Code:
=Sum(Fields!Quantity.Value)/Sum(Fields!Quantity.Value,"Product")
(I know - watch for 0 divide - no problem there - just keeping it simple right now)

and for Jan I get 1,000 (the total for the whole Product regarless of month) and not 300 like I want.

so - how do I tell ssrs sum to look at both a column group AND the row group when doing the sum?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top