Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Subreport not filtering records
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

201 Posts

Posted - 11/26/2012 :  17:35:59  Show Profile  Reply with Quote
I have this subreport in the following environment:
1) Report is hosted on a .NET page (runs on client).
2) In the aspx page, there's one ReportViewer with two separate datsources, because subreport uses a different stored procedure.
3) The stored procedure for subreport does not take any parameters, but
4) The subreport has one parameter defined in the properties - which has its value as the ID field returned by the dataset. So I'm expecting the records returned by the stored procedure to be filtered by the parameter defined in subreports properties.

Problem: Subreports get all the data without filtering.

Any ideas what I'm missing?

Starting Member

1 Posts

Posted - 11/27/2012 :  18:18:47  Show Profile  Reply with Quote
see tablix properties of subreport.rdlc
select filter
Click Add to add a filter
In expression select the field that you want to filter
choose operator =
in value enter the subreport parameter
thats all

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000