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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.