BookmarkSubscribeRSS Feed
PeterWijers
Lapis Lazuli | Level 10

Please try this one.

Works for me. Not sure if you want to use the function to filter from today on.

Greetings

09-03-2018 07-48-01.jpg

Jun_KP
Calcite | Level 5

Thank you both Sam and Peter for your inputs! I worked it out based on your inspiration of utilizing both DayOfWeek and WeekNumber functions. Here's the filter for displaying current week of the year:

 

( Datepart (Date)>= First Day of Current Year ) AND

( ( Datepart(Date)>= Datepart(Now())) OR ( DayOfWeek(Date) <= DayOfWeek(DatePart(Now())) ) ) AND

( WeekNumber(DatePart(Date)) = WeekNumber(DatePart(Now())) )

 

Jun

Sam_SAS
SAS Employee
Great! Glad to help 🙂

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 17 replies
  • 3462 views
  • 3 likes
  • 5 in conversation