Solved

SSRS Limit SubReport to only records to results for that group

Posted on 2015-01-26
3
387 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 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