In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

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
13 - Pulsar

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
Top Solution Authors