Using CASE to return formula-calculated value
Requirement is to build an analysis to convert hours leave balance to days equivalent, using employee assignment working hours value. As employee working hours vary, looking to use CASE to apply different conversion formula.
Basic analysis has been created which current converts employee's balance in hours to a days value. Custom formula has been applied to the employee's hours balance which uses their working hours to return a days value, rounded to nearest 0.5 day:
ROUND(ROUND((SUM("Employee Plan Participation"."Accrual Value")/7.4)/5,1)*5,1)
This returns a days value, rounded to nearest half day, as expected.
However, the divisor value of 7.4 means this is applicable for only those with working hours value of 37 (37 / 5 = 7.4).