Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

how to get time difference between two time columns from two different tables with a relationship

Hi all,

 

I have two tables which contains two time fields, i need to get the time duration between two time fields, two tables contains relationship between them using IncidentId. How to create column/measure for this? Please find below images for refrence. Thanks in Advance.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Reply

  • az38's avatar
    az38
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    how do you plan to deal with time from different days? for example date A = 22 March 23:59:59, date B = 23 March, 01:00:00 ?

    If it doesn't matter, create a simple column

    Date = Table2[ClosedTime] - Table1[SubmitTime]

    and then set DateType as Time in Modeling ribbon