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 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels