You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Calculated cloumn is not having value with decimals (Expected value --> 383/12 = 31.9 but current va

edited Nov 9, 2020 1:36PM in Reporting and Analytics for HCM 5 comments

Summary

Using TIMESTAMPDIFF function getting total months between two dates(Ex: 383 Months) when dividing 383 with 12 (383/12) current value coming as 31.0(383/12 =31.0) but Expected value is (383/12 =31.9)

Content

No of months=TIMESTAMPDIFF(SQL_TSI_MONTH,CAST("Workforce Management - Work Relationship Real Time"."Work Relationship Details"."Enterprise Hire Date" AS DATE), CURRENT_DATE)

suppose No of months =383

Result =No of months/12

Current result => 383/12 = 31.0

Expected result => 383/12 = 31.9

 

Version

20D
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!