Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lennox25
Post Patron
Post Patron

How to Sum time spent in power bi

Currently my table is summing the total time spent as 600 minutes. I want to be able to show this total in hours and minutes. Can anyone help me? It should be 10 hours.

 

lennox25_0-1728487961573.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lennox25 ,

 

lbendlin , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution: 

 

You can create the following measure.

TotalTime = 
VAR TotalMinutes = SUM('Table'[Time])
VAR Hours = QUOTIENT(TotalMinutes, 60)
VAR Minutes = MOD(TotalMinutes, 60)
VAR Total = FORMAT(Hours, "0") & " Hours " & FORMAT(Minutes, "00") & " Minutes"
RETURN
    IF(ISINSCOPE('Table'[Date]), SUM('Table'[Time]),Total)


The final result is shown below.

vkaiyuemsft_0-1728523491176.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @lennox25 ,

 

lbendlin , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution: 

 

You can create the following measure.

TotalTime = 
VAR TotalMinutes = SUM('Table'[Time])
VAR Hours = QUOTIENT(TotalMinutes, 60)
VAR Minutes = MOD(TotalMinutes, 60)
VAR Total = FORMAT(Hours, "0") & " Hours " & FORMAT(Minutes, "00") & " Minutes"
RETURN
    IF(ISINSCOPE('Table'[Date]), SUM('Table'[Time]),Total)


The final result is shown below.

vkaiyuemsft_0-1728523491176.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

@Anonymous  Genius! Thank you works perfectly! 🙂

lbendlin
Super User
Super User

What should the result look like if it is over 24 hours?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors