Oracle Business Intelligence

Products Banner

How can we implement this in obiee ("Time"."Date" + 14/24) ?

Received Response
3
Views
4
Comments

In Data base I can execute this select TRUNC((SYSDATE) + 14/24) from dual; but How can we implement this in obiee ("Time"."Date" + 14/24) ?

Thank you,

Steel.

Tagged:

Answers

  • Joel
    Joel ✭✭✭✭✭

    There are probably other ways this can be done but a straightforward way to do this would be to make use of the Evaluate Function. This will pass the call to the Database TRUNC function.

  • I see Joel's answer and raise you this: What is the end game? What is the requirement which you are trying to achieve?

  • Steelbird wrote:In Data base I can execute this select TRUNC((SYSDATE) + 14/24) from dual; but How can we implement this in obiee ("Time"."Date" + 14/24) ?

    In every place where you can enter formulas you generally have a helper with the list of available functions and there is a group of them called "Calendar/Date", have a look there inside ...

    Break down your request in "logical pieces": you are taking the current date and time of the database server, adding 14 hours and keeping only the date component of the result (removing hours, minutes, seconds and sub fractions)

    Keeping it short: IF time < 10am THEN today ELSE tomorrow .

    If you look at the available functions you can easily achieve this.

  • You're not wrong, but my question stands: What does the OP want to achieve?

    Because what apparently is beyond the scope of any consideration is the fact that a sysdate is just a technical sysdate and things like timezones and DST and hence and real notion of time be damned.