Pages

Pages - Menu

Tuesday, May 4, 2010

How to get one year back date in obiee

Formula to get one year back date

TIMESTAMPADD(SQL_TSI_YEAR, -1, CURRENT_DATE)

Ex: current_date=05/01/2010 then we will get 05/01/2009

4 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Dear Saichand i have one small question fro u,here i am facing one problem ,that is when i open the page of dashboard it is taking more time due to lot of not need reports are running ,how can i spot them can u send me the solution to my email id
    please
    sreedharsiri1@gamil.com

    ReplyDelete
  3. TIMESTAMPADD(SQL_TSI_DATE, -365, CURRENT_DATE)

    ReplyDelete
  4. Instaed of timestampadd we can use timestampdiff.
    TIMESTAMPDIFF(SQL_TSI_DATE, 1, CURRENT_DATE)

    ReplyDelete

.