Hi Alteryx Community,
I am setting up a Year over Year Report for Ordered Net Sales and am facing two challenges:
- allocating incoming orders on weekend and holiday (e. g. through e-shop) to adjacent workdays and
- regarding the dates which to compare.
Allocation Orders
The general rule for the allocation of the incoming orders is that they are allocated to the following workday. Only if there is no workday following – because of month end – they are routed to the preceding workday.
The challenge results from the variety in length of work free periods – normal weekend two days, eastern for example four days. An additional challenge occurs, when such a prolonged weekend falls on change from one month to the next.
Two Examples:

Regarding the comparison we run two concepts:
Generally, we want to compare on a daily basis the current month of the current year with the corresponding months of the two previous years.
Concept 1 compares Weekday vs. corresponding weekdays and concept 2 compares workdays vs workdays.

Finding the corresponding workday shouldn’t be an issue since I have the running total for the workdays.
But my challenge is how to identify the respective matching days in the previous years. Especially for the match of weekdays.
In the attached workflow I
- Marked the workdays and weekends/holidays,
- Calculated the running totals for workdays per year, quarter and month and
- (in the last step) managed to identify the weekday (Mon; Tue, etc.) of the first workday per month in 2022. But how to identify the corresponding weekdays in 2021 and 2020?
I would appreciate any help solving both the allocation issue and matching of weekdays issue.
Thanks
Alex