We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Selecting the max date and then 3 months from the max date

sriniprad08
11 - Bolide

Hi Team,

Hope you are well. I need help.

I would like to extract the data with considering 3 months from the max date. Is there any formula to do this please? ideally 3 month has be to dynamic in the sense in future there should be possibility to extract last 4 or 6 month as well.

 

Please find attached the input and the output desired.

 

Thanks

S

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1633009215022.png

 

1. Using formula tool to convert month to alteryx date.

2. Using summarize tool to get max date.

3. Using append tool to add months column and max date to main date.

4. Using filter tool to filter 3 months from max date.

 

Hope this helps : )

Christina_H
14 - Magnetar

Here's my version.  Update the sample tool to change the number of months included.  It will take the max 3 months that exist in the data.

Christina_Hurrell_0-1633009313446.png

 

Labels
Top Solution Authors