BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jlwatts
Calcite | Level 5

I am creating a report which have four global variables at the top of the page.

 

Paramet List.png

 

I can create a parameter with a hard coded default date, but I want it to update to be today's date by default.

 

date parametet.png

 

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
FredrikE
Rhodochrosite | Level 12

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

View solution in original post

6 REPLIES 6
jlwatts
Calcite | Level 5
I should have posted that I am using VA 7.53
sbxkoenk
SAS Super FREQ

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

jlwatts
Calcite | Level 5
Thank you. I have created the data parameter and a calculated item of datepart( now() ). But I can not figure out how to populate the calculated values into the date parameter as the default value. That is my issue. I want the report to default the date parameter to today's date every time the report is opened.
FredrikE
Rhodochrosite | Level 12

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

jlwatts
Calcite | Level 5
Thank you. I was afraid that was going to be the answer.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 6 replies
  • 699 views
  • 0 likes
  • 3 in conversation