Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi all,
I successfully used a calculated column using DAX to sum times that were formatted in excel to a custom format [h]:mm:ss.
The formula that was used :
Formatted =
VAR _DaysInHours = INT('Table'[DateTime]) * 24
VAR _Hours = INT(MOD('Table'[DateTime],1) * 24)
VAR _Minutes = FORMAT(MOD('Table'[DateTime],1),"nn:ss")
RETURN
_DaysInHours + _Hours & ":" & _Minutes
However now i do not have the option to sum these in my visualisation, only count.
Can anyone help?
Hi @shastie ,
I think you may not select Don't summarize.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Your variable that uses FORMAT and your return are text type so can't be summed. I would use a similar approach to sum everything in minutes and then divide by 60 to get total hours in decimal form.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 42 | |
| 30 | |
| 24 |