Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Filter on Last Day of Previous Month (Criteria)

mrmmickle1Jan 28 2019 — edited Jan 28 2019

Can someone please advise me why I can't use this as a SQL Filter?

"Gregorian Calendar"."Date" = TIMESTAMPADD(SQL_TSI_DAY , -(1), TIMESTAMPADD(SQL_TSI_DAY , DAYOFMONTH("Gregorian Calendar"."Date") * -(1) + 1, "Gregorian Calendar"."Date"))


When I put the expression in a formula it returns the correct date   12/31/2018    .... but it doesn't work as the criteria for a filter...

Similarly I would also like to filter on the last day of the previous year.  Can someone please assist me?  Thank you.

Comments