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