dianemarie
Instructor
Hello, I'm trying to filter my SSRS 2005 report by the clientID field, via my @ClientID parameter. I've got that working with a multi-value parameter. However, sometimes they want to see all clients. In Crystal, we would put a default of 0 in the parameter and in the select statement:
if {?ClientID} <> 0 then {ClientID} = {?ClientID} else True
This would allow the user to run all records or select specific client(s). (They would have to be sure to delete the default 0 if they ran by specific clients.) How do I replicate the "else true" part of this in the filter, allowing for the report to run all clients if desired. I tried defaulting the parameter to 0 and using an expression in the value field of the filter but it's not working with True. The field in the filter is ClientId and operator is In. Value field expression:
=if Parameters!ClientNumber.Value <> 0,Parameters!ClientNumber.Value,true)
I could put this in the where statement of the query as well, but again, I can't figure out how to get the Crystal "else true" equivalent.
Thank you in advance for any help.
if {?ClientID} <> 0 then {ClientID} = {?ClientID} else True
This would allow the user to run all records or select specific client(s). (They would have to be sure to delete the default 0 if they ran by specific clients.) How do I replicate the "else true" part of this in the filter, allowing for the report to run all clients if desired. I tried defaulting the parameter to 0 and using an expression in the value field of the filter but it's not working with True. The field in the filter is ClientId and operator is In. Value field expression:
=if Parameters!ClientNumber.Value <> 0,Parameters!ClientNumber.Value,true)
I could put this in the where statement of the query as well, but again, I can't figure out how to get the Crystal "else true" equivalent.
Thank you in advance for any help.