Fusion Apps : OBIEE TIMESTAMPDIFF Gives Wrong Results
(Doc ID 2097355.1)
Last updated on APRIL 02, 2019
Applies to:Oracle Fusion Global Human Resources Cloud Service - Version 220.127.116.11.0 and later
Oracle Fusion Application Toolkit - Version 18.104.22.168.0 and later
Oracle Fusion Application Toolkit Cloud Service - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document