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

Date with hours (Filter)

ryotaro999
6 - Meteoroid

Hello!

 

I have a data with dates and hours. I need a filter that show me dates yesterday after 2:00 PM.

 

I'm trying with Filter tool but it hasn't option with hours.

 

Thanks.

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @ryotaro999,

 

You could use:

 

DateTimeDiff(DateTimeToday(),[DateTime],'day') <= 1 AND DateTimeHour([DateTime]) >= 14

 

Input:

Jonathan-Sherman_0-1590492879511.png

 

True Output:

Jonathan-Sherman_1-1590492900349.png

 

False Output:

Jonathan-Sherman_2-1590492924798.png

 

 

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Regards,

Jonathan

ryotaro999
6 - Meteoroid

Thank you very much for your quick answer!

 

It worked the way I wanted it to work.)

 

Thank you .

Labels
Top Solution Authors