Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Last day of month...11 months ago

edited Apr 14, 2020 11:22AM in Reporting & Analytics for Sales 3 comments

Content

I need to pull leads created 11 months ago in May 2019. The current month is April of 2020 so I need to pull leads created in May of 2019. 

The expression works below on the lead creation date by getting me the first day of the month 11 months ago (May 1 2019).

TIMESTAMPADD(SQL_TSI_MONTH, -1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))

 

Now I need to add another expression to get the last day of the month 11 months ago (May 31 2019).

 

Any suggestions? Thanks

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!