I have a dataset called "activities" which is written in SQL and in this dataset there is a field called "created on".
When the report is executed it currently has date to and date from parameters in order to filter and only show records based on the selected dates.
What I require is the "start date" parameter to default to the first activities "created on" date.
E.g. Report executed and has multiple activities.
Result: The start date parameter when the report is executed should default to 01/01/2017.
You can't have a default parameter that uses and expression. So you can't do this =Min(Fields!MyDateField.Value, "DataSet1")
as you might expect. As this dataset depends on parameters, it's not available before the report is executed.
Instead you will need to create another dataset that provides the default value.
dsStartDate
)SELECT MIN(myDateColumn) as StartDate FROM myTable
dsStartDate
as the dataset and StartDate
as the Value field.That's it.