March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I'm trying to convent, using power M, a duration column with the format "d.hh.mm.ss" to seconds.
I used a custom column: to seconds = [Video Playtime]*86400. Worked fine, but not when I have date in "Video Playtime" column.
Any suggestions?
Thanks!
Solved! Go to Solution.
Hi @efilipe ,
Please apply the step as per given screen shot attached.
Please give Thumbs up for Support and accept this as a solution if it helps you!
Seconds only extract second, for total seconds press "Total Seconds"
Hi @efilipe ,
Please apply the step as per given screen shot attached.
Please give Thumbs up for Support and accept this as a solution if it helps you!
Seconds only extract second, for total seconds press "Total Seconds"
Thanks @az38 !
Or you can try below M Code.
= Table.TransformColumns(#"Changed Type",{{"Duration", Duration.TotalSeconds, type number}})
Please give KUDOS for Support!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |