Alteryx Designer Desktop Discussions

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

How to find last month last business day

8 - Asteroid

Hi, Community,


I have a problem which I need to find the last month last business day.

For example, last month is Feb,2018 and last business day of Feb,2018 is Feb.28.2018.


But sometimes last day of month may not be the business day, then we need to look previous day to check whether that date is business day.

For March, 2018, the last day of March would be 31th which is Saturday , and 30th is the last business day of Mar,2018.


I'll explore the iterative macro seems like it would be a potential solution but I have never built iterative macro before, so I may need to explore more on iterative macro.


Any ideas how to build the workflow to find the last business day of the month?






15 - Aurora

Hey @khu


I'm not sure this is the most elegent way to do it but it gets the results :)





Part time Tableau, Part Time Alteryx. Full Time Awesome

Data Lover

ACE Emeritus
ACE Emeritus

No need to over complicate this!

Depending how many years you need to go back this solution could work.

You can then join your data against this generated dataset to give you what you need.

8 - Asteroid

Thanks for solution , u rocks

8 - Asteroid

nice and simple, thank you !

8 - Asteroid

I built a similar solution myself but couldn't find an elegant and dynamic solution for bank holidays. any thoughts?

ACE Emeritus
ACE Emeritus

You'll need some sort of mapping file which pulls out bank holidays from your data stream. Shouldn't be too much hasle to create, though of course this depends if you are operating in a single company or globally.