Alteryx Designer Desktop Discussions

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

Payroll Schedule

jalizmaldonado
8 - Asteroid

Hi, I'm working on a workflow to determine a payroll schedule based on whether it's a monthly, semi-monthly, bi-weekly, or weekly frequency. I was able to do the weekly and monthly formulas but do not know how to write a formula to alternate between payment dates based on the following rules:

semi-monthly - 15th and the last day of the month as long as it's not on a weekend or holiday, otherwise it's the day before

bi-weekly - every other Friday, starting on the first Friday, as long as it's not a holiday, otherwise it's the day before

 

24 Payments27 Payments
Semi-MonthlyBi-Weekly
2022-01-152022-01-06
2022-01-302022-01-20
2022-02-152022-02-03
2022-02-282022-02-17
2022-03-152021-03-03
2022-03-312022-03-17
2022-04-152022-03-31
2022-04-302022-04-14
2022-05-152022-04-28
2022-05-312022-05-12
2022-06-152022-05-26
2022-06-302022-06-09
2022-07-152022-06-23
2022-07-312022-07-07
2022-08-152022-07-21
2022-08-312022-08-04
2022-09-152022-08-18
2022-09-302022-09-01
2022-10-152022-09-15
2022-10-312022-09-29
2022-11-152022-10-13
2022-11-302022-10-27
2022-12-152022-11-10
2022-12-312022-11-24
 2022-12-08
 2022-12-22
 2022-12-29
  

 

Please let me know if you're able to assist.

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @jalizmaldonado,

 

I am not sure if this is me but your table might be incorrect. 

 

Emil_Kos_2-1623873383888.png

 

 

The bi-weekly part isn't working correctly as I didn't know what is the starting date. You will need to remove half of the weeks but I think you will be able to figure it out

apathetichell
18 - Pollux

2021-06-16.png

Good amount of complexity here...

2021-06-16 (1).png

 Attached a cleaner version - first version accounted for the opening row in biweekly as having a thrusday paydate because it's the opening row and doesn't have a start date - this version filters that null() out

jalizmaldonado
8 - Asteroid

@Emil_Kos thank you so much. Working on the skipping every other row part now. 

Labels