I want to create an SSRS Report that has two Sub reports links in it.
Report A has Group A content.
Report B has Group B content.
Then I have a Main Report with links to Report A and Report B.
I'm trying to get the main report to have a parameter to allow the user to select which Report they want to look at either Report A or Report B.
This is where I am having trouble with. Any guidance will be appreciated.
There are a few things to consider.
=Parameters!SelectedReport.Value <> "A".SelectReportparameter to your subreport. Then the subreport's dataset query might look something like this..(Bear in mind that the dataset query must always return the same columns with the same datatypes not matter if it's empty of not)
In the above example, when SubreportA runs, the dataset query will only do any real processing is the parameter passed in is "A", otherwise it will return an empty dataset.