CRM On Demand - Reports and Dashboards (MOSC)

MOSC Banner

Help with Date Filter

edited Aug 6, 2014 3:40PM in CRM On Demand - Reports and Dashboards (MOSC) 5 commentsAnswered ✓

Hi All,

I'm trying to put a filter in my report that goes from the beginning of our fiscal year to the end of the previous month.  I currently have this, but I'm getting a syntax error near the AND and I'm not sure how to fix it.

Opportunity."Close Date" BETWEEN date '2014-07-01' AND (YEAR(Opportunity."Close Date") = YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -1, CURRENT_DATE)) AND MONTH(Opportunity."Close Date") = MONTH(TIMESTAMPADD(SQL_TSI_MONTH, -1, CURRENT_DATE)))

Basically, I need the fiscal year to the end of the most recently closed month, so when I run it in August, I get from July 1 to July 31 and when I run it in Sept, I get from July 1 to August 31, etc.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center