Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Calculate Percent in Matrix Report

Author  Topic 

sgrahman
Starting Member

10 Posts

Posted - 2007-08-06 : 10:03:48
I was trying to find out the percent of students by gender within each school and grade from the following table. I used a matrix reports and I have school and grade in the row cell and gender in the coulumn. In the data cell I have count of student. I have the count of male and female students in the matrix report but I could not calculate the percent. Does anyone know how to do percent in Matrix report?? Thanks!

school id grade gender
880 1018264 11 M
920 1020324 12 F
880 1021864 12 M
920 1027596 12 M
900 1027620 12 M
900 1030596 12 F
880 1041440 11 F
900 1051152 12 F
880 1052988 11 F
880 1052992 12 F
920 1062388 11 M

sgrahman
Starting Member

10 Posts

Posted - 2007-08-06 : 10:53:52
The report would look like this after adding subtotal and percent:

School Grade F % F M % M Total
880 11 2 67% 1 33% 3
12 1 50% 1 50% 2
Total 3 60% 2 40% 5
Go to Top of Page

sgrahman
Starting Member

10 Posts

Posted - 2007-08-06 : 12:02:36
I was able to solve this problem myself. Hurrrah!!!!Thanks.
Go to Top of Page

cheeeeeetah
Starting Member

2 Posts

Posted - 2007-08-10 : 06:25:17
quote:
Originally posted by sgrahman

I was able to solve this problem myself. Hurrrah!!!!Thanks.


please tell mee your soloution.beacause i have similar problem
thanks bye
Go to Top of Page
   

- Advertisement -