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