I am creating a report which have four global variables at the top of the page.
I can create a parameter with a hard coded default date, but I want it to update to be today's date by default.
I read about creating a calculated value, but can't figure out how to link the calculated value to populate the parameter.
I can't find any related articles on this site. Suggestions?
Hi!
You can't do that in 7.53.
What you can do is that you add a drop down, sorted on descending date and then add the option for "select first...", that might help you.
I have used ranking to achieve similar functionality, but it is risky if all object does not have all dates...:)
//Fredrik
The Now() operator returns a datetime value so we must wrap the DatePart() operator around it to extract only the date value.
For this Now() operator wrapped into the DatePart() operator, see here:
Cheers,
Koen
Hi!
You can't do that in 7.53.
What you can do is that you add a drop down, sorted on descending date and then add the option for "select first...", that might help you.
I have used ranking to achieve similar functionality, but it is risky if all object does not have all dates...:)
//Fredrik
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.