Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |