Wednesday, January 2, 2013

Equivalent Function in BI for Next_day


There is equivalent functionality in OBIEE, for Next_Day function in Oracle. 
          There is a question too in Oracle forums by me. And, excellent answer by mma1709 (Sorry to say this, as i don’t know his name and that is what there in forums too)
Here it’s…
TIMESTAMPADD(SQL_TSI_DAY, ( 7 – dayofweek(Time.ActualDate) + X ), Time.ActualDate) 
X = 1 will be sunday. If you want tuesday it will be 3. In that way, X will be replaced by the number depends on the next dayname you want.