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
Hello,
I need some help, I have data from a SQL that gives me total hours (up to 24), I have worked out some of hours by using measure,
Solved! Go to Solution.
Hi @micpete ,
One approach to do this is first converting everyting into minutes, then do the sum, then convert back into hours and minutes. Unfortunately working with durations in DAX is not as convenient as in PowerQuery.
Calcualted column:
TimeMinutes = [hours]*60+[minutes]
Measures:
TotalDuration = SUM(table[TimeMinutes])
TotalHours = INT(DIVIDE([TotalDuration],60))
TotalMinutes = [TotalDuration]-[TotalHours]*60
Kind regards,
Martin
Thank you @Martin_D for your prompt reply.
Hi @micpete  ,
May I ask if you have tried the suggestions above? If the suggestion helped you, you might consider marking it as a solution. If the problem has not yet been solved, please feel free to ask us a question.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @micpete ,
One approach to do this is first converting everyting into minutes, then do the sum, then convert back into hours and minutes. Unfortunately working with durations in DAX is not as convenient as in PowerQuery.
Calcualted column:
TimeMinutes = [hours]*60+[minutes]
Measures:
TotalDuration = SUM(table[TimeMinutes])
TotalHours = INT(DIVIDE([TotalDuration],60))
TotalMinutes = [TotalDuration]-[TotalHours]*60
Kind regards,
Martin
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.
            | User | Count | 
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |