Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |