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