Rockdaisy does not aggregate the data, so the datasets should return already aggregated data. The data filtering logic also should be implemented on the dataset side.
To provide filtering logic in the stored procedures you may use the following helper functions.