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
10 - Fireball

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
10 - Fireball

@usmanbashir @Manoj_k @jordanmount6 

 

Thank you so much

Labels