Hello All,
I've created a alteryx workflow which is generating rows (Month column) based on the activation and decommission dates mentioned in the datasets.
for Month column generation our logic is "It should generate the rows that comes within the range 6 months backward & 5 months forward from the current date (2/17/2021)"
Now we have a column named as Evaluation frequency which contain values like Annual, semi annual, quarterly, monthly and there's another column and "recent_testing_month". If the test is other then "Monthly" then that's how the logic should work
For example we've a test named as TI1059 and it's recent testing month is "11/30/2021 18:00" and evaluation frequency is "Quarterly".The month column should generate the dates within the range (-6 and +5) from current month and being a quarterly test it should be 3 months apart. So it should generate the below dates
2022-02-28(yyyy-mm-dd)
2022-05-28
2021-11-30
2021-08-30
we've a test named as TI1941 and it's recent testing month is "8/31/2021 19:00 " and evaluation frequency is "Semi-Annual".The month column should generate the dates within the range (-6 and +5) from current month and being a semi annual test it should be 6 months apart. So it should generate the below dates
2021-08-31
2022-02-28
we've a test named as TI1555 and it's recent testing month is "5/31/2021 19:00" and evaluation frequency is "Annual".The month column should generate the dates within the range (-6 and +5) from current month and being a annual test it should be 12 months apart. So it should generate the below dates
2021-05-31
2022-05-31
also if all these tests have decommission date for example if the test named TI1026 which is Quarterly and has "recent_testing_month" as "9/30/2021 19:00" and has decommission date as "11/8/2021 18:00". The month column should generate the dates within the range (-6 and +5) which is
2021-06-30
2021-09-30
but for some reason my logic ( for month generation) is not working for Annual, semi annual, quarterly. The date looks incorrect
Please help me