I have an SSRS report that I would like to set the default end date to be 6 months prior to today's date and the start date to be 2 years prior to the end date. If I run it in September, End date would be March, next month End date should automatically update to April. How can I configure this in SSRS?
0
votes
3 Answers
0
votes
0
votes
The below expression will work as per your need, you need to put these in the parameters default value section and opt for "specify values" -
StartDate =DateAdd(DateInterval.Month,-30,Now())
EndDate =DateAdd(DateInterval.Month,-6,NOW())
Also choose the parameters as Date/Time
.
Below Snapshot to show the difference I chose Start Date as Date/Time
and End Date as Text