Alteryx Designer Desktop Discussions

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

String from multiple fields to date format conversion

dunkindonut7777
8 - Asteroid

Hi I have a data here that I want to combine the values and convert it to a date format. See sample below:

I want to convert it to a date format but if the period falls into weekends,i want to move it one/two days to make it on weekdays. See sample below:

 

MonthPeriodYearOutput 1Final expected outputNote
July1st Period20227/15/20227/14/2022It was moved 1 day earlier since it falls on weekend
July2nd Period20227/31/20227/31/2022Retain since weekday
August1st Period20238/15/20238/15/2023Retain since weekday
August2nd Period20238/31/20238/31/2023Retain since weekday

 

How can I transform it in alteryx (Final expected output) . Can you help me with this one please?

3 REPLIES 3
flying008
14 - Magnetar

Hi, @dunkindonut7777 

 

Which days are your workday ?  1,2,3,4,5 or 7,1,2,3,4 ?

binuacs
20 - Arcturus

@dunkindonut7777 One way of doing this

Note: I updated the date to 2023

image.png

Raj
16 - Nebula

Hi since your dates are not appropriate for the required result but the output is obtained in required form.

you can use it and make your required output

 
Labels