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 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.

Creating a workflow that would automatically create 2 monthly outputs

jameil900
5 - Atom

I would like to create a workflow that would be able to produce 2 outputs - Data for the upcoming months and data for the previous month. For example at Dec 1st produce sales for november and forecasted sales. I tried using the filter feature but that would mean that you would have to manually go in and change the month. Is there a formula that I could use to always understand the month that would be prior and subsequent?

2 REPLIES 2
cmcclellan
14 - Magnetar

You can use DateTimeToday() to get today's date or :

 

DateTimeTrim(DateTimeToday(),'month')

 

to get the start of the month, then use that in a calculation to determine this month/last month


danilang
19 - Altair
19 - Altair

To add to @cmcclellan's post,

 

Use DateTimeAdd([monthstart], -1,"Months") to get the start of the previous month.

 

Dan 

Labels
Top Solution Authors