BookmarkSubscribeRSS Feed
peachyco
Calcite | Level 5

Hi.

 

In SAS Visual Analytics 7.3, I have a report with a table that shows a list of products. For each product in this list, the table also shows its *last price according to the pricing date*. This is accomplished easily enough with the Last( By Group ) operator.

 

What I wish to do now is to display the *corresponding pricing date for this last price*, so that my users have an idea of how recent the shown price is. I've tried using Rank but I've only gotten to displaying the date as a number, not in any meaningful format.

 

If it matters, the dataset used in this report appears like so:

 

 

PRODUCT | PRICE_DATE | PRICE_USD
Product1 | 2017-01-02 | 21.01
Product1 | 2017-02-05 | 22.52
Product2 | 2017-01-02 | 52.00
Product2 | 2017-01-25 | 51.50
Product3 | 2017-01-15 | 113.72

 

Any advice would be much appreciated. Thanks. ^_^

1 REPLY 1
FredrikE
Rhodochrosite | Level 12
Would't it work with last on the date as well?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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
  • 1 reply
  • 632 views
  • 0 likes
  • 2 in conversation