Duration Type returning Decimal

Hi All,
I have a start and end DateTime columns and supposed to calculate the duration.

but the result is giving me a decimal type and so is of course giving an error of invalid type.

what is the solution here please?

2X_5_510cb73d347cf186f4fa817e46726b2c4abf7304.png

thanks

0 5 245
5 REPLIES 5

Steve
Platinum 4
Platinum 4

What is the expression that calculates the value?

Hi Steve,
this:
IF(ISBLANK([Time Out]), โ€œโ€,TOTALHOURS([Duration]))

[Duration] is a VC.
[Time Out]-[Time In]

TOTALHOURS() gives a Decimal value, not a Duration value.

If the column type is duration, then the output of formula needs to be duration, if you want to output Total Hours, which is a number, the column type should be decimal or number.

thanks both. i have to comb through the duration total hours sample and see my mistakes.

Top Labels in this Space