Solved

SSRS Limit SubReport to only records to results for that group

Posted on 2015-01-26
3
395 Views
Last Modified: 2015-01-26
Hi Experts,

I have a SSRS report with a Matrix that show results for a location.  I have added a subreport of sales and can't figure out how to only show results for that store.  I tried limiting the subreport by location, then I get the same sales for all locations. If I don't have the location as a parameter in the  stored procedure of the sales and link by location from main to subreport I get an error.  Subreport could not be shown....An attempt was made to set a reprot parameter 'Location' that is not defined in this report.  Seems like it should be a straight forward thing, but I am missing it.  Any help is appreciated.
0
Comment
Question by:rcowen00
[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
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40570439
See if this page has the answers for you: https://msdn.microsoft.com/en-us/library/dd220581.aspx

It is a step-by-step Guide to creating a subreport.

I can also recommend the book SQL Server 2012 Reporting Services Blueprints, which focuses on things like parameters, and Chapter 3 includes subreports.
0
 

Author Comment

by:rcowen00
ID: 40570517
Yes, I had already found and followed that tutorial and it either shows all records or I get the error I noted.
0
 

Author Comment

by:rcowen00
ID: 40570534
I think I figured out my issue.  It seems to be working fine if I add all data regions to a rectangle and have no parameter to the subreport.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
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…

724 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