Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Today plus two business days

cmdaglish
6 - Meteoroid

Hi All, 

 

I was wondering if someone could help me figure out how to add two business days to today's date. 

 

I have figured out the formula on how to add two business days...

 

IF DateTimeFormat(DateTimeAdd([Date],2,"days"),"%a") = "Sat" or DateTimeFormat(DateTimeAdd([Date],2,"days"),"%a") = "Sun" THEN DateTimeAdd([Date],4,"days") ELSE DateTimeAdd([Date],2,"days") ENDIF

 

... but I am struggling with incorporating bank holidays into my flow.

 

I have another input tool which will bring in all future bank holidays.

 

Any help would be appreciated. 

 

Many thanks

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi,

 

I have a solution from this post to create a workflow for you. @danilang  created amazing workflow

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/How-to-add-business-days-to-the-date-f...

Qiu
20 - Arcturus
20 - Arcturus

@Emil_Kos 
Nice one.

I am think to use Macro even.😁

cmdaglish
6 - Meteoroid

I had to amend the last filter to be [DayCount] = [BusinessDays]+1 for what I needed but apart from that it works perfectly. 

 

Thanks a lot!

Labels