Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Last day of month...11 months ago — Cloud Customer Connect
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

Accepted answer
19
Views
3
Comments
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!