Lieu Hours Calculation in Custom Report Column
Hi WF Community,
I'm trying to create a calculated custom column in a Timesheet report based on the following:
- If totalHours is between 41-43 hours, multiple these additional hours by a factor of 1
- If totalHours is greater than 43 hours, multiple these additional hours by a factor of 1.5
Examples:
- If Joe Smith logged 43 hours this week, the calculated custom column would display a value of 3 (3 hours*1)
- If Joe Smith logged 46 hours this week, the calculated custom column would display a value of 4.5 (3 hours*1.5)
Here's what I have for the custom column (text mode), but it's not returning any values:
displayname=Calculated Lieu Time
linkedname=direct
namekey=totalHours
querysort=totalHours
textmode=true
valueexpression=IF({totalHours}>40,({totalHours}-40)*1),IF({totalHours}>43,({totalHours}-40)*1.5,"")
valueformat=int
Does anyone know where I might be going astray?
Thanks.
Nick