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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors