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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.