Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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
9 - Comet

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