In visual data builder expression date function while creating data query condition - where tab :
I want place conditions like
Where start_date between intnx(week,start_date, 0,'B') and intnx(week,start_date, 0,'E')
having said - I want to see a list of only those records where startdate is within the current week's first date of week and last date of week.
The following is an example of the expression that you will need to use. Note, in the example expression "date" is a data item. You will have to have a value for your start_date. I simply hard coded in may 30.
intnx('week','30MAY1980'd,0,'B') <= 'date'n <= intnx('week','30MAY1980'd,0,'E')
The following is an example of the expression that you will need to use. Note, in the example expression "date" is a data item. You will have to have a value for your start_date. I simply hard coded in may 30.
intnx('week','30MAY1980'd,0,'B') <= 'date'n <= intnx('week','30MAY1980'd,0,'E')
That's great - I will try to implement it tomorrow and get back to you. Thank you very much.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.