Solved

SSRS Subreport Not Displaying in Main Report

Posted on 2014-04-25
3
3,601 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

827 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