Alteryx Designer Desktop Discussions

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

Designer| Filter for data using dynamic/rolling date range

Mj9715
8 - Asteroid

Hi All, 

 

I need to filter monthly data (attached) to include the previous 24 months from the latest month of date . For example if the latest date in input data is Aug-2021, I need to filter for data from Sep-2019 till Aug-2021.

 

Can someone suggest the best way to do this using DateTime in the filter tool?

 

 

 

 



4 REPLIES 4
RolandSchubert
16 - Nebula
16 - Nebula

Hi @Mj9715 ,

 

you can find the last date in your data using a Summarize tool, add this date to all rows using Append Fields and use a Filter tool to select all rows having [Date] > DateTimeAdd([Max_Date], -2, 'years')

 

2021-09-22_08-12-26.jpg

 

Let me know if it works for you.

 

Best,

 

Roland

Qiu
21 - Polaris
21 - Polaris

Hope this would help you.

Capture4A.PNG

Mj9715
8 - Asteroid

Thanks Roland, worked like a charm!

Mj9715
8 - Asteroid

Hi Qui, this for some reason gets me all months in 2019, instead of from September 19 onwards!

Labels