SSRS : Disable/Hide Parameters based on selection in another Parameter - reporting-services

I Have 4 Parameters in my SSRS report.
My requirement is that one of my parameters is the main parameter and based on that parameter selection the remaining 3 parameters should display/hide in the parameter section.
Eg. My parameters are
Parameter 1 - which has values Market, Technology
Marketunit
Country
Technologies
If Market is selected in Parameter 1 I need to display only 2 & 3 (i.e) Marketunit and Country
If Technology is selected in Parameter 1 I need to display only 4 - Technologies in Parameters Section
Is it Possible in SSRS 2012 ?
My initial view
After selection

Related

SSRS Report not setting dropdown list from parameter

I have an SSRS report that has 2 parameters - vendor and years. Years is just a text field while the Vendor is a dropdown list which is generated from a query. I am trying to run this report from another report by passing in values for both of these parameters as below:
http:///ReportServer/Pages/ReportViewer.aspx?/Production/Supply+Chain/Vendor+Part+History&years=3&vendor=00046
The value of the years parameter is setting correctly but the vendor is not getting selected in the dropdown and hence the report will not run without user having to manually select the vendor.
Can you please advise what I am missing?
There are a few things you need to check.
You are passing in the value 00046 as the vendor therefore either the available values shoudl not be defined in the report or it must include 00046 as one of the available values.
When you pass in a parameter you are passing in the parameter Value not the parameter Label. So if you had a list of available values from a table something like
CategoryID
CategoryName
1
Fruit
2
Veg
3
Meat
and in your parameter's available values you had CategoryID as the Value and CategoryName as the Label and you wanted to run the report for "Veg" then you would pass in 2 not Veg .
If your parameter's labels and values are the same, then make sure that they are exactly what you are passing in (i.e. 46 is different than 00046).
Try setting your parameter type to text, even if it is a number.

SSRS Visibility expression to hide certain Tablix, after parameter selection

Hi All I have a ssrs report with 6 tablix and all 6 using the same dataset1, but with tablix filtering for 6 unique service provider, one for each tablix.
The user selects a country from the parameter. And based on which country the user selected: Out of the 6 service provider, some of them may not be available in that country and will display a blank tablix table with only the column headers.
What I want: Is there a way to change the visibility settings so that whichever service provider tablix is empty, they would become invisible?
For example: User selects Canada:
Provider1: Available in Canada, Show Tablix
Provider2: Available in Canada, Show Tablix
Provider3: Not available in Canada results in blank tablix - Turn visibility to hide
Provider4: Not available in Canada results in blank tablix - Turn visibility to hide
Provider5: Available in Canada, Show Tablix
Provider6: Not available in Canada results in blank tablix - Turn visibility to hide
So only Tablixs for Provider 1, 2, and 5 will show on the report.
I am assuming this will use the IIF expression? I just need some guidance on what would be the best way to accomplish this.
Thank you
You can use a similar expression to set Hidden property of a Tablix:
=IIf(CountRows("YourTablixName") = 0, True, False)
The NoRowsMessage property of a Tablix may be useful to your needs. If the filters result in the tablix having no data to use, this will show a message instead of displaying the column/row headers. This can be static or an expression:
="No Provider3 data available for " & Parameters!Country.Value
The Font properties of a tablix (rather than the properties of it's cells) control how the No Rows Message displays.

ssrs dril through to another report from matrix collapsed mode

I created a matrix report table with the option to drill down in that matrix with the + sign in both columns and rows.
The user can also click on any text-box in the matrix and it actions to a different report with parameters to view details.
Both tables are 1 report and 1 matrix table in different settings of hide/show groups.
In the right table I sent the number marked red is an example for drill through with parameters sales+mary, and aria1+product 2.
On the left, the drill through always sends with sales-david as parameter because he was first.
How can I drill-through with a parameter that represents the entire group of sales?
You should be able to use InScope("SalesPerson") or simialr to test the scope of the cell you click on. If it's inscope of the detail column group you can pass the actual SalesPerson to the drill down report, if not then pass some arbitrary value (say -1) and have you sub-report ignore SalesPerson if the parameter is -1
InScope("SalesPerson") will return true if the group is expanded or false if it's not.
You can read about InScope here
https://technet.microsoft.com/en-us/library/ms156490(v=sql.100).aspx

SQ Server 2008 r2 Reporting Services : optional parameter values and reports

In an existing ssrs 2008 r2 report, I have a requirement from a user where they want to add 2 more parameters to the report. Right now there is an option
where the user can choice to generate report1, report2, report3, report4, report5, report6, report7, report8, and/or any combination of the reports I just listed.
This is setup by using an expression in the visibility property for each of the 8 tablixes.
For your information, the following is an example of how to display one of the reports or not:
=iif(InStr(join(Parameters!report.Value,","),6)>0,false,true)
Now the user wants to be able to add the parameters of customer and inventory_item based upon if report7 and/or or report8 is selected.
Now can you tell me the following:
Would you show me the code I can use in the dataset to select report7 and/or report8?
Is this considered using 'optional' parameters since they new parameters of inventory_item are based upon if report7 and/or or report8 is selected. If so, can you show me how I can code for these optional parameters?
If the above is not possible to select specific reports, then would the dataset query need to look something like:
where #report is null or where #report is not null? What would you suggest?
If the above options are not possible for the 2 new parameters, would I have all items (or one item)selected so that the reports would run all the time?
For your extra parameters, you can check out Cascading Parameters (http://www.mssqltips.com/sqlservertip/3466/cascaded-parameters-in-sql-server-reporting-services/).
Basically, you'll add your new parameters but not use them for the filter unless reports 7 or 8 is selected. Unfortunately, there's not a method I know of to disable a parameter based on another parameter selection.
I'm guessing from your expression that your Report parameter just returns a value of 1 - 8 based on the report selected. The example should be from Report 6:
=IIF(InStr(Join(Parameters!report.Value, ","), 6) > 0, false, true)
The Filter to use your new inventory_item parameter would be something like:
=IIF(InStr(Join(Parameters!report.Value, ","), "7") > 0
OR InStr(Join(Parameters!report.Value, ","), "8") > 0,
IIF(Parameters!inventory_item.Value = Fields!inventory_item.Value, TRUE, FALSE), TRUE)
This would only restrict the data by inventory_item if the report is 7 or 8.

SSRS Drillthrough Report with one or more charts from Main Report

I am totally new to SSRS. I am not sure if my title explains what I want. I am creating few Dashboards for my Healthcare Database. Therefore I created a Patient summary report and a Patient details report.
Patient summary has:
One Pie chart that contains No of Patients(values) per Race(series)
Another Pie chart which contains No of Patients(values) per gender(series)
Patient details has:
One table which contains
Admission type (in-patient/out/patient) as the 1st row drill down.
Status(Alive/Dead) as the Second row drill down.
It also containes two parameters on Race and Gender which both accept Null or Empty values.
In the main report, I have already set the "Action" in the Pie charts series category and added the parameters Race and Gender respectively.
My problem is that when I click on one pie chart I am getting an error saying the other value is blank. That is, when I click on the Male portion of the gender pie chart, I am getting an error saying
"The 'Race' parameter is missing a value"
I have tried searching but found only methods to pass multi-valued single parameter values.
I am not sure how to pass two parameters from the main report to the child report by clicking the 2 pie charts. Some one please let me know if it is even feasible or not and point me in the right direction. It would be greatly appreciated.
Since you are specifying both parameters for each pie chart Action, SSRS is expecting a value to be passed for both.
It sounds like you need to remove one of the parameters from the "Action" setting on the pie charts. If your subreport parameters are set to allow null values then you should only need to specify the parameters you actually want to pass, e.g. "Race" on the race pie chart.