Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Dynamically filtering for a date range that includes hours, minutes and seconds

schuprov
7 - Meteor

Hi all,

 

I am struggling to write a filter formula for one of my workflows as I am not that good with datetime formulas.

 

Can you please help me write a filter formula where I want to filter out all transactions that are between two days ago from 3am till one day ago at 2:59:59 am.

My Column is called TransactionDate and it comes in the following format "yyyy-MM-dd hh:mm:ss"

 

Thank you so much for your help.

4 REPLIES 4
binuacs
20 - Arcturus

@schuprov Can you upload some sample data and expected output

schuprov
7 - Meteor

@binuacs for example if i have four transactions:
1. 2023-12-17 01:00:00

2. 2023-12-17 03:01:00

3. 2023-12-18 02:30:00

4. 2023-12-18 03:05:00

 

i want alteryx to dynamically everyday to only pick up the transactions that are within my time range which is from two days ago at 3am and one day ago 2;59;59.

So under the example above the true anchor of the filter will only output transactions 2 and 3, since 1 and 4 are outside those dates

binuacs
20 - Arcturus

@schuprov one way of doing this

image.png

schuprov
7 - Meteor

@binuacs that worked perfectly, thank you so much. I was just missing the todate function before my formula.

appreciate your quick response! accepting your answer as a solution!

Labels