ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Get the Last 3 Months

KamenRider
11 - Bolide

Hi,

 

Can someone help formulate a formula or filter to get the last 3 months? Data set is attached.

 

Thanks,

Kamen

4 REPLIES 4
jordanmount6
8 - Asteroid

One way would be to add a formula tool. First create a column for today using this formula : DatetimeNow()

 

Then create a column with this formula: DateTimeAdd([today],-3,'months')

 

Then you can add a filter tool that will be [your date field] > [3 months ago]

usmanbashir
11 - Bolide

@KamenRider - You can use this in filter. Hope this helps!

[Begin Date] >= DateTimeAdd(DateTimeToday(),-3,'months')

 

Another option if needing last 3 months from 1st of current month. 

[Begin Date] >= DateTimeAdd(DateTimeFirstOfMonth(),-3,'months')

 

Another option if needing last 90 days

[Begin Date] >= DateTimeAdd(DateTimeToday(),-90,'days')

 

Manoj_k
10 - Fireball

hi @KamenRider we can do it both the ways using a filter or  a formula filed. i have attached the screen shot

Screenshot 2024-04-11 004152.png

KamenRider
11 - Bolide

@usmanbashir @Manoj_k @jordanmount6 

 

Thank you so much

Labels
Top Solution Authors