Beastmode Timediff Errors

Options

Hi all, using the following to calculate time differences between requested and actual drop off times:

TIME_TO_SEC(TIMEDIFF(Actual Drop-off Time,Requested Drop-off Time)) / 60

Seems like the math isn't panning out (first column should be ~25 in the time difference column but instead is showing 1415.80). Haven't used the timediff function before in Domo, so any advice on how to modify my beastmode formula to reflect the time difference in minutes between these two timestamp columns would be much appreciated.

Tagged:

Best Answer

  • david_cunningham
    Answer ✓
    Options

    For differences in time this is my preferred approach

    (UNIX_TIMESTAMP(new_timestamp) - UNIX_TIMESTAMP(old_timestamp))

    You can then divide the result to get to the grain (day,hour,min,seconds) you want to.

    David Cunningham

    ** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
    ** Did this solve your problem? Accept it as a solution! ✔️**

Answers

  • david_cunningham
    Answer ✓
    Options

    For differences in time this is my preferred approach

    (UNIX_TIMESTAMP(new_timestamp) - UNIX_TIMESTAMP(old_timestamp))

    You can then divide the result to get to the grain (day,hour,min,seconds) you want to.

    David Cunningham

    ** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
    ** Did this solve your problem? Accept it as a solution! ✔️**