how to set SSRS Report parameters to be optional i.e Non-Mandatory field in SSRS 2005

Dhana picture Dhana · Mar 11, 2013 · Viewed 56.5k times · Source

Please help me to set the SSRS Report parameters to be optional i.e Non-Mandatory field in SSRS 2005.

Answer

djangojazz picture djangojazz · Mar 11, 2013

Set the parameter to 'Allow null value' under General section. Null according to SSRS means it does not have to be set, thus making it optional.

Then post something like this in the predicate of your SQL syntax:

Where column = isnull(@Variable, column)

This lets the dataset know that if the variable is set then use it, else have an operator to have the value equal itself. I am certain this works in SSRS 2008 and 2012, not sure of 2005 but I would assume it may be there.