Amadeus cookies policy - you'll see this message only once.

Amadeus use cookies on this website. They help us to know a little bit about you and how you use our website, which improves the browsing experience and marketing - both for you and for others. They are stored locally on your computer or mobile device. To accept cookies, continue browsing as normal. Or, go to the privacy policy for more information.

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…

Display the Current Date in a Visual Analytics Report Image 1.1

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.

 Display the Current Date in a Visual Analytics Report Image 6

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.

Display the Current Date in a Visual Analytics Report Image 7

Display the Current Date in a Visual Analytics Report Image 8