Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have a column in json format that collects seconds & nanos this way --> "{""seconds"":1714393064,""nanos"":0}"
Please help me convert this to DD:HH:MM:SS or date(if possible).
Solved! Go to Solution.
@sa34techer So like this?
let
Source = Json.Document(File.Contents("C:\temp\testjson1.json")),
#"Converted to Table" = Table.FromRecords({Source}),
#"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"seconds", Int64.Type}, {"nanos", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each #duration(0,0,0,[seconds]))
in
#"Added Custom"
@sa34techer So like this?
let
Source = Json.Document(File.Contents("C:\temp\testjson1.json")),
#"Converted to Table" = Table.FromRecords({Source}),
#"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"seconds", Int64.Type}, {"nanos", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each #duration(0,0,0,[seconds]))
in
#"Added Custom"
User | Count |
---|---|
85 | |
75 | |
70 | |
69 | |
55 |
User | Count |
---|---|
98 | |
97 | |
92 | |
78 | |
70 |