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

Business Day Logic

Gandalf_NotGrey
8 - Asteroid

Hello, I have a query related to Date and Time.

I have a SQL query which tells me which Business Day (BD) of the month it is today. If today is October 4th 2024, it will give the result as 4, meaning that today is the 4th Business Day of October 2024. This SQL query pulls data from a source table which is based on US Fed Reserve Holidays and BDs are calculated accordingly. I have attached an excel file with the list of Business Days for ease of use.

Now, this workflow runs every day and I want that if today is Saturday or Sunday or a Holiday then it should be give me the output of previous BD and in case the previous BD is not in the current month but in the previous month, then in that case it should be give me the output as 1.

2 REPLIES 2
OTrieger
14 - Magnetar

@Gandalf_NotGrey 
You will manage to do it with a Multi Row Formula tool.

binuacs
21 - Polaris

@Gandalf_NotGrey Sample workflow attached

image.png

Labels
Top Solution Authors