Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Handling dates

NitiGupta
6 - Meteoroid

Hi, I am new to Alteryx and I want to populate the Monday of the week for any input date that I have. How can this be achieved in Alteryx?

2 REPLIES 2
RolandSchubert
16 - Nebula
16 - Nebula

Hi @NitiGupta ,

 

there are some DateTime functions you can use to do that.

Step 1: Convert your date to a "Date" data type in Alteryx (DateTimeParse)

Step 2: Find the day of week for that date (DateTimeFormat, there is a specifier "%u" returning the day of week with 1 = Monday)

Step 3: subtract the appropriate number of days from your date (DateTimeAdd) and you should be done.

 

I've attached a sample workflow, let me konw if it works for you.

 

Best,

 

Roland

NitiGupta
6 - Meteoroid

Thanks so much for helping with the right functions. It worked as expected.

Labels