SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Matrix Group % of Total


Matrix Group % of Total

Author
Message
jfrance
jfrance
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 69
I have been asked to change an existing percent of total in a Matrix report. Currently the report looks like the example below:

Category 1 Category 2
Year Set A Set B Set C Total Set A Set B Set C Total Total
2007 41 32% 26 20% 41 32% 108 84% 13 10% 5 4% 2 2% 20 16% 128 100%
2008 30 27% 14 13% 46 41% 90 80% 12 11% 5 4% 5 4% 22 20% 112 100%

The user would like the Set %'s to be a % of the Set within the Category as seen below:
Category 1 Category 2
Year Set A Set B Set C Total Set A Set B Set C Total Total
2007 41 76% 26 84% 41 95% 108 84% 13 24% 5 16% 2 5% 20 16% 128 100%
2008 30 71% 14 74% 46 90% 90 80% 12 29% 5 26% 5 10% 22 20% 112 100%

In a nutshull, instead of the Set %'s being a % of row total, the user would like the set %'s to be a % of Set within Category & year. (e.g. 2007 Set A totals to 54)

I have attempted to do so by using a different Matrix Group and the correct answers is given but the results are displayed on different lines and is not presentation quality.

Any help is appreciated.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search