Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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
18 - Pollux
18 - Pollux

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