Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello! Currently I am connecting to SolarWinds, which is some sort of IT ticketing software. They have a to_resolve_business_time that is exactly that, the duration from the creation of the ticket to the resolution. This can be several hours. More than 24. Which is where I am encountering an issue. What do I do with this to format it as a duration so that I can use it for averaging etc? Anything over 24 hours is considered an Error.
What can I provide to make this easier?
It imports like this:
If it's text, I can't do any math as a duration, as I'd like to do average/median/etc.
Thanks!
Solved! Go to Solution.
Try this in Power Query:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjC0MjC1MjJVitUBcgysDEysjIzAHCMzKxDfQCk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [to_resolve_business_time = _t]),
ChangeType = Table.TransformColumnTypes(Source,{{"to_resolve_business_time", type text}}),
Duration = each let d = List.Transform(Text.Split(_, ":"), Number.FromText) in #duration(0, d{0}, d{1}, d{2}),
TransformColumn = Table.TransformColumns(ChangeType, {"to_resolve_business_time", Duration, type duration})
in
TransformColumn
Raw data (text):
Result (duration):
Proud to be a Super User!
Try this in Power Query:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjC0MjC1MjJVitUBcgysDEysjIzAHCMzKxDfQCk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [to_resolve_business_time = _t]),
ChangeType = Table.TransformColumnTypes(Source,{{"to_resolve_business_time", type text}}),
Duration = each let d = List.Transform(Text.Split(_, ":"), Number.FromText) in #duration(0, d{0}, d{1}, d{2}),
TransformColumn = Table.TransformColumns(ChangeType, {"to_resolve_business_time", Duration, type duration})
in
TransformColumn
Raw data (text):
Result (duration):
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |