Alteryx Designer Desktop Discussions

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

Creating a field with multiple conditions

dunkindonut7777
8 - Asteroid

Hello I want to ask for your help regarding the data I have. I want to create the "Date" field using the conditions stated in the table below:

 

MonthPeriodID codeYearDate
February1st Period 20232/10/2023
July2nd Period 20227/25/2022
DecemberSpecial payroll 202212/25/2022
DecemberAnnualization 202212/25/2022
MayMonth Pay 20235/25/2023
NovemberMonth Pay 202211/25/2022
AprilFinal Pay2007NA202304/27/2023
AugustFinal Pay1911AB20221/9/2022
DecemberFinal Pay2107CB202211/17/2022

 

How can I set the "Date" field using the month, period, id code and year values, considering that some ID codes are empty. Can you help me with this one please?

1 REPLY 1
FinnCharlton
13 - Pulsar

Hi @dunkindonut7777 , what is the logic that decides which day within the month these events fall on? i.e. How do we know that April final pay is on the 27th? If there is no additional logic and those are just the days these events fall on, I would make a lookup table with all events and relevant days. You can then join the lookup table to any data you need to add the dates to in the future

Labels