Forum Discussion

RajHelaiya's avatar
RajHelaiya
Qrew Captain
8 years ago

How to convert Duration to numeric ?

I have a field duration which collects data in minutes using smart units. I want to convert this duration to numeric field so I can use it in a calculated column to compute pace? 

I tried using the function ToNumber but it doesnt validate the argument. Is there any other way? 
  • Have you tried using the ToNumber([Duration_Field_A]) in the calculated column?
  • Yes, ToNumber only has text and boolean as argument. Doesn't work. 
    • ChuckGrigsby's avatar
      ChuckGrigsby
      Qrew Cadet
      Ah you're right. I tried a duration field, entered 5, returned 5 days. then in a formula numeric field used ToText() and it returned 120. Assuming you want 5 to return?