BookmarkSubscribeRSS Feed
Tihannah
Obsidian | Level 7

I have built some graphs and my current date ranges are Week Ending, Month, and Year.

 

I need to be able to filter on the Current Week Ending  Date and Month.

 

How do I build that in an advanced filter?  Thank for any help!

1 REPLY 1
Sam_SAS
SAS Employee
Do you already have the week ending date values, or do you need to calculate them?

You probably want to do this as part of your data query by using the INTNX() function. See this thread:
https://communities.sas.com/t5/Base-SAS-Programming/Identifying-Weekend-date-from-a-given-date/td-p/...

Once you have the week ending date values in a column, filtering on that should be fairly straightforward unless there is some issue I am missing.

Thanks,
Sam

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