I’m using SQL Server Reporting Services to make a few reports.
I have a few reports where filters are optional.
For example .. Imagine you have a report of books. The end user has the option to specify (or filter by) none, one, or many authors.
I do not believe I can put an IF { } statement into my query?
If there a suggest or best way to do this in SQL Server Reporting Services?
thanks!
You can do this anywhere you want a condition..
Pass Null into the parameter if you don’t want to use it.
In SSRS, you’ll need to set the paremeters as NULL by default in SSRS… see here for more detail