Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.