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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 647 views
  • 0 likes
  • 2 in conversation