Fusion Apps : OBIEE TIMESTAMPDIFF Gives Wrong Results (Doc ID 2097355.1)

Last updated on JANUARY 16, 2016

Applies to:

Oracle Fusion Global Human Resources Cloud Service - Version 11.1.10.0.0 and later
Oracle Fusion Application Toolkit - Version 11.1.10.0.0 and later
Oracle Fusion Application Toolkit Cloud Service - Version 11.1.10.0.0 and later
Information in this document applies to any platform.

Goal

OBIEE TIMESTAMPDIFF gives wrong results

Hi, customer wants to calculate average ages of people in the company. To calculate the age of a person I have to compare two dates, sysdate and birth date and I'm doing it by using TIMESTAMPDIFF-function:

TIMESTAMPDIFF(SQL_TSI_YEAR, "Person"."Person Date Of Birth", CURRENT_DATE)

Unfortunately that rounds the result. For example we have now a person with birthday 17.12.1952 so he's still 62 but OBI calculation says that he's already 63. That's wrong and if I use that to calculate average age for the whole personnel, I'll get wrong results.

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms