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

Reporting Period end of Month

PassION_es
10 - Fireball

Hello Alteryx,

 

Requesting for immediate help.

 

What is the correct formula to get the end of month of the last period?  This is the formula i used however, it resulted to 08-30-2024 instead of 08-31-2024.

 

Datetimeformat(toDate(DateTimeAdd(DateTimeLastOfMonth(),-1,'month')),'%B %d, %Y')

 

 

Thank you.

6 REPLIES 6
OTrieger
14 - Magnetar

@PassION_es have you tried to remove the -1 from the formula?

Qiu
21 - Polaris
21 - Polaris

@PassION_es 
We need another Fuction "DateTImeTrim" which can get the last day of the month.

0910-PassION_es.png

PassION_es
10 - Fireball

Thank you @Qiu 

PassION_es
10 - Fireball

@OTrieger , -1 represents the last reporting month which is August.

OTrieger
14 - Magnetar

I'm using a different formula
DateTimetrim([DateTime_Out],"lastofmonth")

PassION_es
10 - Fireball

okay i will try also this one. Thank you.

Labels
Top Solution Authors