In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors