Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

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.

 

 

Capture2.PNGCapture1.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 REPLY 1
az38
Community Champion
Community 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


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.