Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Identify a Time Frame for Month Prior Filtering

tim_koirtyohann
6 - Meteoroid

I need to filter a data set for jobs filled in the month prior to the current month.

 

Ex: In May, I need to filter a report of jobs filled over an extended period of time to ID only filled in April of current year, in June for jobs filled in May, etc.

 

I don’t want to have to edit the timeframe each time I run it so I need a way to ID the month prior to the current month.

 

I created a column (Current Month) with the Formula Tool and DateTimeFirstOfMonth() to identify the first the current month. How do then ID the month before that date? Since months can have 28, 29, 30, or 31 days, what would be the best method?

 

2 REPLIES 2
ed_hayter
12 - Quasar

Datetimeadd([Current month], -1, "month") should add a column with the value being the first of the prior month

 

ed_hayter_0-1686151753875.png

 

tim_koirtyohann
6 - Meteoroid

Thank you, I knew it had to be easier than I thought.

 

Labels