Hello,
We're creating an OTBI report that fetch employees time card details. Please see below requirements
- If employee did not work on a holiday, it should return 'PH'
- If employee worked on a holiday, it should return the number of reported hours.
We already completed the number one requirement. However, we can't still figure out on how to retrieve the number two.
Please see the SQL Expression we used: (on the second WHEN statement, this is where we try to create the number two requirement. However, it's not working.
CASE WHEN "Reported Time Entry Details"."Payroll Time Type Name" = 'Public Holiday IN' THEN 'PH'
{WHEN "Reported Time Entry Details"."Payroll Time Type Name" = 'Public Holiday IN' AND "Reported Time Cards"."Reported Hours"
IS NOT NULL THEN CAST("Reported Time Cards"."Reported Hours" AS CHAR)}
ELSE CAST("Reported Time Cards"."Reported Hours" AS CHAR) END
Any help would be appreciated.
Thank you!