- 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

Formatting Text to Duration
Hi everyone,
First time here, so I'm excited to get help - thank you very much.
I receive a weekly update with data, including the time for certain calls. "Non ACD Calls in Time" and "Logged On Time (Per Skill Group)" are being seen as "Text," while "Non ACD Calls Out Time" is being seen as "Time." I would like to format all columns as "Time" to see how many hours, minutes, and seconds people spend on the phone.
In the raw data set, everything is formatted as the same:
Thank you very much for your help!
Cheers
Markus
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you very much - I've also found sth. that worked:
let DurationFromYourText = (text as text) as duration => let Split = Text.Split(text, ":"), AsNumbers = List.Transform(Split, Number.FromText), Duration = #duration(0, AsNumbers{0}, AsNumbers{1}, AsNumbers{2}) in Duration, Invoked = DurationFromYourText([#"Logged On Time (Per Skill Group)"]) in Invoked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @MarLinCH
Have you tried to change data type from here? You select the column and change to duration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Yes, if I change it to "Duration", it will show "Error":
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @MarLinCH
Ok, I think the problem is because you have duration over 24 hours. Try to apply this solution: https://community.fabric.microsoft.com/t5/Desktop/Duration-Error-over-24-00-00/td-p/1204481
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you very much - I've also found sth. that worked:
let DurationFromYourText = (text as text) as duration => let Split = Text.Split(text, ":"), AsNumbers = List.Transform(Split, Number.FromText), Duration = #duration(0, AsNumbers{0}, AsNumbers{1}, AsNumbers{2}) in Duration, Invoked = DurationFromYourText([#"Logged On Time (Per Skill Group)"]) in Invoked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

That's nice!! Please, mark the topic as solved for other users who may have the same problem

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 | |
---|---|---|---|
11-29-2023 02:33 AM | |||
08-27-2024 01:55 AM | |||
12-26-2024 09:29 AM | |||
Anonymous
| 03-08-2024 02:02 AM | ||
08-29-2024 01:58 PM |
User | Count |
---|---|
28 | |
27 | |
25 | |
14 | |
10 |
User | Count |
---|---|
24 | |
21 | |
18 | |
16 | |
10 |