- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Duration conversation 00:60:54 to 01:00:54
Hi All,
I have the following issue.
Data source does not convert to hours when time is in 60min like this example:
00:60:54 - which is 60mins and 54sec .. and when I chagne type = Duration I got an error.
Any ideas how to convert 0:60:** to 1:00:** ? It should be 1:00:54
Same happens when I have 60 seconds but I have deal with using replace values "00:00:60" = "00:01:00"
If the minutes are above 60 data source is counting as 1 hour but if is in 60min ... 😕
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

In your first message : "Duration conversation 00:60:54 to 01:00:54"
but you have just one 0 : "0:28:07"
Duration.From(
(
Number.From(Text.Start([Column1],1))*3600
+Number.From(Text.Middle([Column1],2,2))*60
+Number.From(Text.End([Column1],2))
)
/86400)
or
Duration.From(
(
Number.From(Text.BeforeDelimiter([Column1], ":"))*3600
+Number.From(Text.BetweenDelimiters([Column1], ":", ":"))*60
+Number.From(Text.AfterDelimiter([Column1], ":", 1))
)
/86400)
Stéphane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you ALL !!!
Duration.From(
(
Number.From(Text.BeforeDelimiter([Column1], ":"))*3600
+Number.From(Text.BetweenDelimiters([Column1], ":", ":"))*60
+Number.From(Text.AfterDelimiter([Column1], ":", 1))
)
/86400)
That one worked flawlessly :)) Have a good day ahead. Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

It's because you have "0:" in there somewhere. Try replacing those Text.Start, .Middle, and .End with Text.BeforeDelimiter, .Between Delimiters, and .AfterDelimiter, using the ":" as the delimiters for each parameter (add 1 for the optional Index parameter in Text.AfterDelimiter though!).
Make that replacement in @slorin 's formula and it will work.
--Nate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

In your first message : "Duration conversation 00:60:54 to 01:00:54"
but you have just one 0 : "0:28:07"
Duration.From(
(
Number.From(Text.Start([Column1],1))*3600
+Number.From(Text.Middle([Column1],2,2))*60
+Number.From(Text.End([Column1],2))
)
/86400)
or
Duration.From(
(
Number.From(Text.BeforeDelimiter([Column1], ":"))*3600
+Number.From(Text.BetweenDelimiters([Column1], ":", ":"))*60
+Number.From(Text.AfterDelimiter([Column1], ":", 1))
)
/86400)
Stéphane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi
Duration.From(
(
Number.From(Text.Start([Column1],2))*3600
+Number.From(Text.Middle([Column1],3,2))*60
+Number.From(Text.End([Column1],2))
)
/86400)
Stéphane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Many thanks for quick reply but maybe I have to change the format before adding this custom column?
Below is before change type to Duration
And here is after change type to Duration

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
10-16-2019 09:25 AM | |||
09-01-2023 12:10 AM | |||
Anonymous
| 01-29-2019 06:33 AM | ||
03-14-2023 04:18 PM | |||
01-01-2025 07:17 AM |
User | Count |
---|---|
26 | |
25 | |
24 | |
13 | |
10 |
User | Count |
---|---|
24 | |
21 | |
18 | |
17 | |
10 |