I'm a bit of an SSRS noob and would appreciate some assistance with report parameters.
I have a SQL query similar to the following:
SELECT [abc],[xyz],[etc]
FROM [database].[dbo].[db_view]
WHERE [Date] BETWEEN @StartDate AND @EndDate
Normally this will result in two report parameters being created, [Start Date] and [End Date]. However the default date picker scenario becomes tedious for users when running reports several times for a prior periods and can often select incorrect start and end dates.
The preferred approach is to provide users with parameters like [Year] and [Month] and have these defaulted to current values, e.g.: Year:[2014] Month:[March], and use these selections to set the SQL query parameters accordingly, i.e. the latter selection would be used to set @StartDate='2014/03/01' and @EndDate='2014/03/31'
I'm not sure how parameters can be set as described above; any guidance will be greatly appreciated.