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
Hi community,
I need help, I trie to convert a duration number to whole number but in my whole number a need durations in hours
Exemple : 05:02 = 5 hours
Hi @Vanessa250919 ,
Please try to create a calculated column with below formula supposed to duration field is Text type:
Hour = VALUE(LEFT('Table'[Duration],FIND(":",'Table'[Duration],1,0)-1))
Best Regards
Rena
See this article that will demonstrate how to convert to seconds and from there you could convert to hours easily. https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
@Greg_Deckler I just read this post, but it's not the same problem . I don't have a duration whole number, it's my problem 🙂
OK @Vanessa250919 I'll get this right at some point, here is a duration to seconds converter: https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92
Sorry @Vanessa250919 I thought that article referenced this one:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
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 |
---|---|
127 | |
84 | |
66 | |
55 | |
43 |
User | Count |
---|---|
197 | |
106 | |
94 | |
64 | |
55 |