Hi I am trying to create a report in SSRS for a survey. The report title should have the survey date displayed. Below is what my report looks like in excel:
It has the survey date in report heading. I am trying to do similar thing in SSRS but not able to display the dates. This is what my report looks like in SSRS:
Sorry I had to blacken some of the fields. Anyways so in SSRS I created two parameters @reportStartDate and @reportNextDate. I want these parameters to be populated with yesterday's date and current date. So the param @reportStartDate should be yesterday's date and @reportNextDate should be today's date.
I tried multiple things and haven't figured out the solution yet. In the dataset properties, I assigned the following expression to the parameters:
@reportStartDate = DATEADD (DAY, DATEDIFF(DAY, 0, GETDATE()), -1)
@reportNextDate = DATEADD (DAY, DATEDIFF(DAY, 0, GETDATE()), 0)
Here is how I created the parameters:
And here is how I assigned the parameters with expression in Dataset properties:
But after this when I preview the report, I get the error
I am working on SSRS for first time and have been struggling with this issue from almost more than a day. Any idea what I am missing or doing wrong?