Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Deriving Previous quarter end date based on a particular date

Idyllic_Data_Geek
8 - Asteroid

I have a date 2023-06-30( 2nd quarter end date) and based on it I want to derive last (1st quarter end date). It should be 2023-03-31. The formula datetimeadd([Current_Quarter], -3, 'months') is giving me 2023-03-30 instead of 2023-03-31. Any suggestions on how I can solve for it?

 

Thanks in advance

1 REPLY 1
Prometheus
12 - Quasar

@Idyllic_Data_Geek  Finding the last day of a past month can get hairy if you're using DateTimeAdd and DateTimeLastOfMonth, but if you find the first of the past month you're looking for and subtract a day, you'll be set.

Last Qtr End.PNG

Labels