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

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Subreport not filtering records

Author  Topic 

sqlbug
Posting Yak Master

201 Posts

Posted - 2012-11-26 : 17:35:59
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?
Thanks,

waseemullah
Starting Member

1 Post

Posted - 2012-11-27 : 18:18:47
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

Waseem
Go to Top of Page
   

- Advertisement -