In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Adding Days to skip to Monday

Deano478
12 - Quasar

Hey Folks,

 

This is probably a common question but I couldn't find a way of doing by looking at past solutions, so essentially I have this data:

 

And I just want to be able to add days to skip to the Monday of the next week. 

 

As always any help and guidance is much appreciated,

 

Cheers

 

DateTheDayInMonthDayIsWeekend
08/07/20238Saturday1
14/01/202314Saturday1
09/09/20239Saturday1
06/08/20236Sunday1

 

3 REPLIES 3
Christina_H
14 - Magnetar

This formula should shift any date to the following Monday:

DateTimeAdd([Date],8-ToNumber(DateTimeFormat([Date],"%u")),"day")

Christina_H_0-1674479280785.png

binu_acs
21 - Polaris

@Deano478 One way of doing this

 

binuacs_0-1674483677719.png

 

Deano478
12 - Quasar

@Christina_H  and @binu_acs Cheers for the help guys I was able to use your solutions and adapt them into my WF

Labels
Top Solution Authors