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! Request now

Reply
GilesWalker
Skilled Sharer
Skilled Sharer

Calculating difference between two times

Hi Everyone,

 

I am having a lot of trouble trying to get a tidy result for calculating the difference between two times. One column has actual arrival, and the other has scheduled arrival. Is there a way to get an answer to look like this for example 01:14:43?

 

Heres an example of the data:

 

PBI time.PNG

 

Hope someone can help.

 

Thanks,

 

Giles

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

Yes there are ways. The solution will depend on your data type, and you will presumably also need to manage the scenario when the day changes. If it were me, I would first make sure the data in the columns is in the format date/time. You can then just do a simple [actual] - [planned] to get the difference. If you format this as a time only, it should format the time as you want. The only issue will be of the arrival time is > 24 hours late. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

2 REPLIES 2
MattAllington
Community Champion
Community Champion

Yes there are ways. The solution will depend on your data type, and you will presumably also need to manage the scenario when the day changes. If it were me, I would first make sure the data in the columns is in the format date/time. You can then just do a simple [actual] - [planned] to get the difference. If you format this as a time only, it should format the time as you want. The only issue will be of the arrival time is > 24 hours late. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington - Thanks Matt, the data is in a time format however I did not have the answer [difference] in time format.

 

Thanks

 

Giles

 

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.

Top Solution Authors