Solved

Display columns for only students in class on each page

Posted on 2014-11-06
2
159 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
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
Comment Utility
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
Comment Utility
Got it I thought that might be the case.  Subreport could work I'll look at that.
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now