Alteryx Designer Desktop Discussions

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

how to filter yesterday working data

Anbumani
7 - Meteor

I have Date Colum with format YYYYMMDD eg(20240603) I want to filter yesterday's data if we running the workflow on Monday then i need Friday's data and i want the filtered data in format DD/MM/YYYY

 

Please help with the code which i need to use

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@Anbumani 
I think we can think as below

If we run the workflow on Monday, then we need to go back to Monday by Minus 3 days from current day.

If we run the workflow on Sunday, then we need to go back to Monday by Minus 2 days from current day.

for rest weekdays, we can just go back to previous day by Minus 1 day from current day.

0624-Anbumani.png

Anbumani
7 - Meteor

Thank you so much this solution works perfectly  

Labels