Solved

Display columns for only students in class on each page

Posted on 2014-11-06
2
172 Views
Last Modified: 2014-11-06
Given a dataset like this I am trying to create a classroom report.

Classroom      Student Name      Question Number      Correct      Teacher
CL400      John      1      Y      Mary
CL400      John      2      Y      Mary
CL400      John      3      N      Mary
CL201      Fred      1      N      Benjamin
CL201      Fred      2      Y      Benjamin
CL201      Fred      3      N      Benjamin
CL400      Bob      1      N      Mary
CL400      Bob      2      Y      Mary
CL400      Bob      3      N      Mary
CL201      Lindsey      1      Y      Benjamin
CL201      Lindsey      2      Y      Benjamin
CL201      Lindsey      3      Y      Benjamin
CL201      Mark      1      N      Benjamin
CL201      Mark      2      N      Benjamin
CL201      Mark      3      Y      Benjamin
CL201      Debbie      1      Y      Benjamin
CL201      Debbie      2      N      Benjamin
CL201      Debbie      3      N      Benjamin
CL400      Jennie      1      Y      Mary
CL400      Jennie      2      Y      Mary
CL400      Jennie      3      Y      Mary


I tried creating a SSRS report using a matrix table. For row group Parent group is Teacher, child group classroom, child group question number.

I setup column group to student name. In detail I put Correct field value.

When the report is run all students are shown across top instead of just the ones that are in the classroom. There are blank values in the detail for those students that are not in the class.

Mary's class has 3 students so should show 3 students/columns at top on her sheet.
Benjamin's class has 4 students so should only show 4 students/columns at top
Does a SSRS matrix report not do what I want? If so what could I be doing wrong?

Output needed:
Sheet 1                        
                        
Teacher:      Mary                  
Classroom:      CL400                  
Questions      John      Bob      Jennie      
1      Y      N      Y      
2      Y      Y      Y      
3      N      N      Y      
                        
                        
                        
Sheet 2                        
                        
Teacher:      Benjamin                  
Classroom:      CL201                  
Question      Fred      Lindsey      Mark      Debbie
1      N      Y      N      Y
2      Y      Y      N      N
3      N      Y      Y      N
0
Comment
Question by:troyzoschke
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40427245
The single matrix report cannot do what you want directly.

Instead, you need to have the teacher as a parameter and generate each report separately.

Alternatively, you could have each teacher's report as a subchart, feeding each teacher's name as a parameter to the subchart.
0
 

Author Closing Comment

by:troyzoschke
ID: 40427260
Got it I thought that might be the case.  Subreport could work I'll look at that.
Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question