Solved

SSRS Subreport Not Displaying in Main Report

Posted on 2014-04-25
3
3,675 Views
Last Modified: 2014-05-06
I'm using BIDS to develop a report in SSRS 2012.
The main report shows responses to a survey on courses being taken; there are five questions, the first four allowing answers in the format 1 to 4 (i.e. 1= Poor, 2 = Satisfactory etc.). The fifth question is a simple Yes/No. The report aggregates the responses and shows as a percentage, so for example, English Language may have 13% saying the course content is 4 (Excellent). So far so good for the first four questions.
However, because the fifth question is in a different format I've created a sub-report so I can show the responses as % Answering yes v No.

The main report has no parameters and has groupings on course and course Level; the sub report also groups on Course and Course Level, and takes input parameters on Course, Course Level and a third parameter (@Recommend) which tells the stored procedure it only wants to see the responses to the fifth question. The @Recommend parameter is hard-coded into the subreport datasource; the other two parameters are entered manually if the report is run stand-alone, or are passed from the main report.

The sub-report works fine if run on its own. It also works if I embed it within the Tablix of the main report which I tried to test if it was passing the parameters correctly. However, if I place it below the tablix of the main report it does not display. Is there something I'm missing or doing wrong?
0
Comment
Question by:Karl_mark
[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
3 Comments
 

Author Comment

by:Karl_mark
ID: 40022611
Actually, scrub some of the question! I figured out why it wasn't displaying at all; The main report was missing the grouping on Course Level.
So, the question now becomes, how can I get the subreport to appear for each group and not at the end of the report?
0
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 40025147
The  sub-report has to be placed inside the group. Also make sure that your subreport is running correctly (the sub-report is just a regular standalone report  that is added to the main report). And that your parameters right being imported into the subreport.
0
 

Author Closing Comment

by:Karl_mark
ID: 40043820
Thanks Planocz. I did figure out the putting it inside a group bit, but I'll give you the points anyway!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

749 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