For more information, please refer to this announcement explaining best practices for getting answers to questions.
A comparison is being carried out between non-compatible types DATE and INTEGER. (HY000)
Summary:
I have an OTBI report using the Payroll Balances Real Time subject area. The below formula does not return any errors however when running the report I'm getting this error "A comparison is being carried out between non-compatible types DATE and INTEGER. (HY000)" when using this formula. Could someone please help with the correct syntax? Thank you.
CASE WHEN "Department_GL Cost Center Information"."Department_ORG_INFORMATION_EFF_PER_GL_COST_CENTER_INFO__COST_CENTER" IN ('9528375', '9528376') and ("Payroll Period"."Default Pay Date") <= 10/12/2023 THEN 'Healthworks <= 10/12/2023'
WHEN "Department_GL Cost Center Information"."Department_ORG_INFORMATION_EFF_PER_GL_COST_CENTER_INFO__COST_CENTER" IN ('9528375', '9528376') and ("Payroll Period"."Default Pay Date") > 10/12/2023 THEN 'Healthworks > 10/12/2023' END