Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Filter data based on weekday and weekend

vchauhan011
7 - Meteor

Hello Everyone! 

My data set looks something like below table. 

 

DateValue
2020-12-011
2020-12-022
2020-12-033
2020-12-044
2020-12-055
2020-12-066
2020-12-077
2020-12-088

 

I want my output to have today and yesterday's data. I am able to get this data using [Date] <= DateTimeAdd(DateTimeToday(),-2,"Days") formula. However, this formula is not working whenever it is Monday. whenever is it Monday, I want my output to have data from Fri, sat, Sun and Mon. any suggestion how I can get that data? 

Thank you very much in advance! 

 

 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@vchauhan011 
you said pervious 4 days for Monday and 2 days for others day?

1113-vchauhan011.PNG1113-vchauhan011-1.PNG

vchauhan011
7 - Meteor

Correct! and the workflow you shared is working perfectly! Thank you very much 

Labels
Top Solution Authors