Forum Discussion
MikeLanglois
4 years agoFrequent Visitor
Find time difference (hh:mm:ss) between two datetimes
Hey all, I am probably missing something stupidly easy, but I have two columns: Date 1 Date 2 31/01/2022 08:12:01 31/01/2022 09:32:46 31/01/2022 08:10:53 31/01/2022 08:12:26 31...
- 4 years ago
MikeLanglois You need to convert the hh:mm:ss to seconds, perform the subtraction and then convert back to hh:mm:ss or use Chelsie Eiden's duration to keep it as a numeric value with a custom format string.
Duration to Seconds Converter - Microsoft Power BI Community
Greg_Deckler
4 years agoCommunity Champion
MikeLanglois You need to convert the hh:mm:ss to seconds, perform the subtraction and then convert back to hh:mm:ss or use Chelsie Eiden's duration to keep it as a numeric value with a custom format string.
Duration to Seconds Converter - Microsoft Power BI Community
MikeLanglois
4 years agoFrequent Visitor
Thanks for the links. What an incredibly long winded way of doing one value minus another! Assumed it would be that simple as it is on other Microsoft products.
Anyway thanks again