BookmarkSubscribeRSS Feed
Sultana
Calcite | Level 5
 
Can you provide me with a code that shows only the end of quarter months March ,June, September, December and moves on in the future months my data stats from 2017.so That I can use it in the drop down menu, THIS IS FOR SAS VA
3 REPLIES 3
Sam_SAS
SAS Employee

Hello,

 

I believe this type of expression is what you will be looking for:

 

 

( Month('Date by Month'n) In (3, 6, 9, 12) )

 

 

 

Is this the type of result you want?

 

eoq.png

 

What I did here was create a duplicate of 'Date by Month' and set its format to Month. This data item is assigned to the button bar. To show only the 4 end of quarter months in the button bar, I created a filter similar to the code I shared above. Then I created an interaction so that the list table would be filtered by the button bar. This might happen automatically for you, depending on how you create the button bar.

 

Let us know if that helps, or if you are looking for something different.

 

Thanks,

Sam

touwen_k
Pyrite | Level 9

thank you Sam, it also helped me.

Sam_SAS
SAS Employee

Great, thanks for letting us know 🙂

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 3 replies
  • 1257 views
  • 2 likes
  • 3 in conversation