Forum Discussion

bdehning's avatar
bdehning
Post Prodigy
4 years ago
Solved

Custom Column

I have a Custom Column with the following:   24 Hour =Time.From( Number.Round( Number.From( [Time of Incident] ) * 24 ) / 24 )   I need to add code to account for time that is 11:30 PM and later ...
  • bdehning's avatar
    bdehning
    4 years ago

    That was close.

     

    I had to use 

     

    Time.From(if Number.Round( Number.From( [Time of Incident] ) * 24.01 ) / 24=1 then 0.0 else Number.Round( Number.From( [Time of Incident] ) * 24.01 ) / 24)

     

    This allowed time under :30 to go back to the hour.