Microsoft
Software
Hardware
Network
Question : Default parameter to max date
Hi, Is it possible to default a parameter to the max date? I tried doing this in the parameter's default values, specify values expression box, but it didn't work. I got the error aggregate and lookup functions cannot be used in report parameter expressions.
=max(Parameters!Run_Dt.Val
ue)
My dataset is this -
select distinct run_dt from tbl_A
Answer : Default parameter to max date
Add a 2nd dataset. Your query will be select max(run_dt) from tbl_A . Then in your parameter under default choose get values from a query. You can then choose this dataset and the field which is the max date.
Random Solutions
Translating coordinates from one coordinate system to another
Mac Mail + Exchange 2007 keeping drafts in the 'Drafts' folder after they are sent
help with robocopy syntax
Lightweight network management for mobile workforce
SSRS Combine two datasets into one data region - Must be in report not in SQL server
Network issue.
T-SQL Update Ordering by IDs based on a random number column
No translation group found
How to enable error reporting in event viewer for IE 8
Retrieve a list of unique values from a list object