The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Finding Previous or next Monday based on Condition from a date

VahidGoli
アステロイド

Hi All,

I have a date, say "2021-06-09", I need a formula or a tool to get the next Monday "2021-06-14", or the previous Monday "2021-06-07", based on the condition.

I know how to do the condition, but I don't know how to achieve the Monday calculation in Alteryx.

 

Would you please guide me on that?

 

Thank you in advance.

3件の返信3
apathetichell
アルクトゥルス

Is your date currently set up as a date?  If so - see the attached workflow which uses some nifty date/time tricks.

VahidGoli
アステロイド

Hi @apathetichell , you are a legend mate. Thanks.

MackStewart
アステロイド

This is awesome. changed -1 to -0 to get Sunday - just realised that -0 is redundant. :D

ラベル
トップのソリューション投稿者