Reputation: 31
I have 2 parameters in my report to select a date range:
StartDate & EndDate
I want to hide the StartDate and allow users to just select the EndDate which should then dynamically change the start date to 1 year before the EndDate.
I need this to happen every time a user changes the EndDate changes.
I'm pretty sure I have to use cascading parameters, but I don't know how.
Any suggestions?
Upvotes: 3
Views: 1839
Reputation: 23789
Yes, cascading parameters are the trick if you want to do this at the report level. (You could also handle this pretty effectively at the query level.)
=DATEADD( DateInterval.Year, -1, Parameters!EndDate.Value )
Now you can use both @EndDate
and @StartDate
in your query without initializing them and they will be passed the SSRS value.
Upvotes: 8