Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

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

Received Response
1
Views
4
Comments
Rank 4 - Community Specialist

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:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Rank 8 - Analytics Strategist

    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.

  • Rank 2 - Community Beginner

    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.

  • Rank 2 - Community Beginner

    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.

Welcome!

It looks like you're new here. Sign in or register to get started.