Solved

SSRS Limit SubReport to only records to results for that group

Posted on 2015-01-26
3
353 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
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now