Click here to Skip to main content
15,888,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an SSRS report with 4 parameters. 1 of the parameters is Country. If the countryid is in (1,2,3,4) I would like to set the column (textbox) visibility to true. When the parameter is not in that list I would like to hide the column.

What I have tried:

=IIF((Parameters!CountryList.Value in (1,2,20,21), false,true))
Posted
Updated 11-Jan-17 20:39pm
Comments
Maciej Los 12-Jan-17 2:30am    
Does CountryList stores single value or list of values? What kind of data is stored in CountryList - string, integer?

1 solution

In case, when a CountryList is a list of values, you have to check what value is on the first position:
=Parameters!CountryList.Value(0)=1


Note: IIF() function is redundant, because a comparision of two values, like valueA=valueB always returns boolean value.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900