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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MYDATASTORY
Resolver I
Resolver I

Time Diff between Times

Hi,

Please advice, thanks in advance

I have 5 columns  TrainStartTime, TrainName, Date, and TrainFishTime  I want to calculate the exact time the journey takes Duration 

1.I would like to calculate the exact duration including the minute's train takes (HH: MM) TrainFishTime-TrainStartTime

2. Total Duration of all the train journey by month(date column)TrainFishTime-TrainStartTime Group by Date/Month

3Total Duration of all the train journey by TrainName( TrainName column)TrainFishTime-TrainStartTime Group by TrainName

Time format HH:MM:SS

The expected results for the requirement is below on the Duration column 

 TrainStartTime TrainFishTime  Duration   |  TrainName  | Date
02:20:0002:50:0000:30:00   | TrainA           |01/7/2020
12:30:0001:30:0001:00:00   |TrainB             |09/2/2020
2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @MYDATASTORY ,

 

With your expected output,it seems easy to get the result by creating a column:TrainFishTime-TrainStartTime, but if you cant simply get the result by the expression,could you pls upload your .pbix file to onedrive business and share the link with us?Remember to remove the confidential informantion.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@MYDATASTORY ,

You can have column like

[TrainFishTime]-[TrainStartTime ]

 

for aggregation refer

https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-i...

https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&MessageK...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.