Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
118 | |
116 | |
71 | |
64 | |
46 |