Mar 09, 2023 08:05 PM
I'm new with these and I think i'm having a big mistake but I cannot find it.
I'm trying to extract the number of hours for an specific duration record.
Obviously I use HOUR command but it doesn't work!
As you can see in screenshots, the field Hours works in the following way:
Hour({Time})
But, it generates ERROR!
What am I doing wrong?
Thanks!
Solved! Go to Solution.
Mar 10, 2023 12:28 AM - edited Mar 10, 2023 12:29 AM
`HOUR()` expects a date time, not a duration and that's why you're getting the error.
To get the hour, try either of the following:
ROUNDUP(
Duration / 60 / 60,
1
)
ROUNDDOWN(
Duration / 60 / 60,
1
)
Mar 10, 2023 12:28 AM - edited Mar 10, 2023 12:29 AM
`HOUR()` expects a date time, not a duration and that's why you're getting the error.
To get the hour, try either of the following:
ROUNDUP(
Duration / 60 / 60,
1
)
ROUNDDOWN(
Duration / 60 / 60,
1
)