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

Date generation

ABC_Anonymous
7 - Meteor

Hello, I wanted to create an iterative macro to generate the closing dates of 2 years before a specific date for Example : for the date 2024-06-30

 

Input :

QYDate
Q3_20242024-09-30

 

Output :

QYDate
Q3_20242024-09-30
Q3_20242024-06-30
Q3_20242024-03-31
Q3_20242023-12-31
Q3_20242023-09-30
Q3_20242023-06-30
Q3_20242023-03-31
Q3_20242022-12-31
Q3_20242022-09-30
1 REPLY 1
alexnajm
19 - Altair
19 - Altair

You shouldn't need an iterative macro - the Generate Rows tool should work! Just do a bit of work after (or adjust the logic) to make sure you are getting the actual end of the month rather than the 30th

Labels
Top Solution Authors