Solved

Display columns for only students in class on each page

Posted on 2014-11-06
2
165 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

After much searching across the internet I have found that you could not set the name of the file you were attaching to dynamic report subscriptons in Microsoft Reporting Services. I did manage to find one article showing you how your could make a s…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

786 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