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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.