Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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 |
---|---|
98 | |
89 | |
82 | |
70 | |
67 |
User | Count |
---|---|
115 | |
104 | |
101 | |
72 | |
64 |