I have a nullable boolean input parameter with the following expression in my textbox:
=iif(Parameters!Sorted.Value="","All",iif(Parameters!Sorted.Value="True","Sorted","Unsorted"))
and I am trying to display this based on the value of Sorted input parameter
Null = "All"
True = "Sorted"
False = "Unsorted"
I have also tried the following switch statement without any luck:
=Switch(Parameters!Sorted.Value="","All",Parameters!Sorted.Value="True","Sorted",Parameters!Sorted.Value="False","Unsorted")
Each time when the report renders I receive the following error:
The value expression for the textbox ‘textbox7’ contains an error: Input string was not in a correct format.
I am using VS2003 and SSR Designer v 8.0
Edit #1: Per request
<ReportParameter Name="Sorted">
<DataType>Boolean</DataType>
<Nullable>true</Nullable>
<Prompt>Sorted</Prompt>
</ReportParameter>
Is this the code you were requesting?