Display the Current Date in a SAS Visual Analytics Report
In SAS Visual Analytics there is no option to display the current date within a report.
A calculated item can be set to evaluate the current date and then added to a List Table to display it. The date will be re-evaluated each time the report is refreshed.
Using the options drop-down menu in the data tab, select New Calculated Item…
To build the expression the following Date and Time operators will be used:
- DatePart - Returns just the Date from a DateTime variable
- Now - Returns the current Date and Time
In the visual builder in the New Calculated Item dialogue box, drag on the operators so that the expression reads DatePart ( Now( ) ) and ensure the Result Type is Date.
Add a List Table object onto the canvas and drag the new variable onto it to display the date. Change the Properties and Style of the List Table so that only one cell is displayed.