Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to identify Business Day FROM and BEFORE a certain date

PaweeArce
5 - Atom

Hello,

Hope everyone is doing great. Appreciate if someone can help me in determining the formula or workflow on how to identify the 10th Business Day FROM and BEFORE a certain date. I have attached the sample data for reference.

Sat, sun and US holidays should be excluded from the count of days.

 

Thank you so much.

PaweeSample Data.png

3 REPLIES 3
Bren_Spill2
12 - Quasar
12 - Quasar
PaweeArce
5 - Atom

Thank you for the quick response. Will check on this and let you know if i have questions. 

apathetichell
20 - Arcturus

An alternative idea--> add a recordid to the calendar which separates out holidays/weekends.

join schedule -> calendar. select "deselect duplicate fields"

subtract your value from recordid (like recorid-10 or whatever) as a new value called -> startvalue

join on itself startvalue on recordid. do not deselect duplicate fields.

 

your new datasource will be original date, recordid of the original date from the calendar. start value (ie record id-10), Right_original date. Right_original date (or original date- depending upon how you structure your join) will now be the date-10. rename the date fields to refelct proper naming in a select tool.

Labels
Top Solution Authors