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.
SOLVED

Set cu-off period

mhtomines
7 - Meteor

Hi Everyone,

 

I would like to set a cut-off period condition on my workflow. If the last action date is beyond 16:00:00 (24hr format) then it would be tagged as "past cut-off" else "no".

 

sample date format:

2023-04-04 16:18:00

2023-04-04 17:32:00

 

Thank you in advance!

2 REPLIES 2
mceleavey
17 - Castor
17 - Castor

Hi @mhtomines ,

 

this is a simple formula:

 

mceleavey_0-1680703759682.png

You can use the following formula to achieve this:

if datetimeformat([Last Action Date],"%T")>datetimeformat("16:00:00","%T") then "Y" else "N" endif

 

This converts the datetime into a time format, and compares the converted time to the cut-off time.

mceleavey_1-1680703813187.png

 

I hope this helps,

 

M.

 



Bulien

mhtomines
7 - Meteor

Thanks you!!

Labels
Top Solution Authors