BookmarkSubscribeRSS Feed
Ajai_Utd
Calcite | Level 5

Dear All,

 

The below sample table is registered in the lasr.

 

DateStageAmount
01-Jan-18Stage1100
01-Jan-18Stage1100
01-Jan-18Stage1100
02-Feb-18Stage2100
02-Feb-18Stage2100
02-Feb-18Stage2100
03-Mar-18Stage3100
03-Mar-18Stage3100
03-Mar-18Stage3100
04-Apr-18Stage1100
04-Apr-18Stage1100
04-Apr-18Stage1100

 

Based on this table I want to create a table in SAS VA in such a way that if I select a Date in the dropdown list, it shud show the values for 3 previous months for Example: If I am selecting the Date in drop-down list as 01Mar2018, its shud show the 3 months inclusive of march i.e.., 01Mar2018, 1Feb2018, and 01Jan2018.

Please let me know the solution for this in SAS VA.

 

 

Regards,

Ajai

1 REPLY 1

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 573 views
  • 0 likes
  • 2 in conversation