Alteryx Designer Desktop Discussions

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

Formula logic help

NiranjanK1
8 - Asteroid

Hi All, Please help me to build the below logic

 

EDate:-

If Today is Monday then EDate Include(Today-3,Today,Today+1) - Friday,Sunday,Suturday,Monday and Tuesday for EDate Report.

If Today is Friday then EDate Include(Today-1,Today,Today+2)- Thurday,Friday,Suturday and Sunday, Monday for EDate Report.

If Today is Tuesday Then EDate Include(Today-1,Today,Today+1) - Monday, Thesday, Wednesday for EDateReport.

 

PDate:-

If Today is Monday then PDate Report is (Today+2) Wednesday.

If Today is Friday then PDate Report is Exclude(Suturday and Sunday) is (Today+2) Tuesday.

 

 

RunDateEDatePDateExpectedOutput
3/3/20233/3/20233/22/2023EDate Report
3/3/20233/3/20234/5/2023EDate Report
3/3/20232/23/20233/7/2023PDate Report
3/3/20233/3/20234/3/2023EDate Report
3/3/20233/4/20234/11/2023EDate Report
3/3/20233/5/20234/4/2023EDate Report
3/3/20233/6/20234/20/2023EDate Report
3/3/20233/3/20233/30/2023EDate Report
3/3/20232/20/20233/7/2023PDate Report
    
3/6/20233/3/20233/30/2023EDate Report
3/6/20233/4/20233/31/2023EDate Report
3/6/20233/6/20233/21/2023EDate Report
3/6/20232/17/20233/8/2023PDate Report
3/6/20233/6/20234/14/2023EDate Report
3/6/20233/6/20233/28/2023EDate Report
3/6/20232/21/20233/8/2023PDate Report
3/6/20233/5/20233/22/2023EDate Report
5 REPLIES 5
binuacs
20 - Arcturus

@NiranjanK1 can you explain this logic "If Today is Monday then EDate Include(Today-3,Today,Today+1) - Friday,Sunday,Suturday,Monday and Tuesday for EDate Report.? it is confusing

FrederikE
13 - Pulsar

@NiranjanK1,

 

I am not sure about your logic. E.g. what is with the other weekdays? But here's how you could approach it: 

FrederikE_0-1678184774147.png

 

NiranjanK1
8 - Asteroid

@binuacs 

 

If Today is Monday then In EDate In have to consider - Friday,Sunday,Suturday ( Today-3) and Monday (Today) and Tuesday (Today+1)

I have to tag all these dates to One New filed saying that these belongs to todays report. 

binuacs
20 - Arcturus

@NiranjanK1 Sorry, I completely did not understand the requirement. I have attached a sample workflow with your input data, may be based on that you can give me some expected output would be easier for me to complete the requirement

 

you can see all the days now (today, EDate Day and PDate_Day). 

binuacs_0-1678189289151.png

 

NiranjanK1
8 - Asteroid

@binuacsthank you, i will check and update 

Labels