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

Advance date field by 1 day

MCDR929
8 - Asteroid

Hi group - 

 

This should be a layup for a lot of you.

 

I just need to add 1 day to a date field when another field has a given value.

 

as in:

If [field]="20" then [datefield] +1 day

 

Actually, my IDEAL solution would be to advance my "day of week" field to the next day of the week (Monday-Friday preferred).  I know that might be a more complicated solution, and I'm limited on time, so whatever anyone can suggest would be a huge help.

 

Thanks!

2 REPLIES 2
benakesh
12 - Quasar

Hi @MCDR929 ,

Try this for next work day  .  Formula adds  3 for  Friday or adds 1 day .

iif(
DateTimeFormat([Field1],'%a') = 'Fri' ,
DateTimeAdd([Field1],3,'days') ,
DateTimeAdd([Field1],1,'days')
)

MCDR929
8 - Asteroid

Perfect, thank you!

Labels