Please try this one.
Works for me. Not sure if you want to use the function to filter from today on.
Greetings
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
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.