ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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