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.
Hi, how should i convert below time value exceed 24hours to seconds in PBI? Please help~~~
Solved! Go to Solution.
Add a custom column in the query editor and put this expression in the pop-up box.
let
hms = List.Transform(Text.Split([Other Work], ":"), each Number.From(_)),
result = hms{0}*60*60 + hms{1}*60 + hms{2}
in
result
Pat
Add a custom column in the query editor and put this expression in the pop-up box.
let
hms = List.Transform(Text.Split([Other Work], ":"), each Number.From(_)),
result = hms{0}*60*60 + hms{1}*60 + hms{2}
in
result
Pat
Thank you so much ! it works perfectly for me!
Hi @AAAbbbnewbie :
- First, in Power Query, separate the time by character : (You will get three columns: hours,minutes and seconds).
-Then, create a custom column:
Time= [Other work Hours]*3600+[Other work Minutes]*60+[Other work Seconds]
Thanks for sharing 🙂
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 |
---|---|
40 | |
27 | |
20 | |
14 | |
8 |
User | Count |
---|---|
76 | |
48 | |
46 | |
20 | |
16 |