Forum Discussion

magus's avatar
magus
Helper I
5 years ago
Solved

Difference between two times

Hello! I am trying to calculate a waiting time between the moment that the customer opens a claim and an agent resolves it. In other words, it is a difference between two times in Power Bi. I tried ...
  • v-yingjl's avatar
    5 years ago

    Hi magus ,

    Basically the datediff() function should work when the date format is HH:MM:SS.

    You can also create a calculated column like this to calculated the minutes diff:

    Basic calculation column = 
    VAR diff = [Resolution hour] - [Claim submition hour]
    RETURN
        HOUR ( diff ) * 60
            + MINUTE ( diff )
            + SECOND ( diff ) / 60

    Attached a sample file in the below, hopes it could help.

     

    Best Regards,
    Community Support Team _ Yingjie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.