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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply

Suming Time

I want to calculate the sum of time taken my each employee and also days based on that total time.
For example 100 task(each record) takes 00:20:00 (20 min for each task) , so total will be 2000 min and days will be 3.9 days (2000/(8.5hr * 60))and there are 4 such employee 
I'm using table visual to show the record.
But can't able to sum the time value.
Below is the dataset field

chintusasmal123_0-1716339359329.png

 

1 ACCEPTED SOLUTION
v-jingzhan-msft
Community Support
Community Support

Hi @chintusasmal123 

 

The time type in Power BI represents a point in time rather than a Duration. As the current column is in Time type, you can create a new column with below DAX to convert it into minutes. 

Time (Minutes) = HOUR('Table (2)'[TimeHHMM])*60 + MINUTE('Table (2)'[TimeHHMM])

vjingzhanmsft_0-1716447061251.png

Then use the new minutes column for calculation. Create measures:

Total Time (Minutes) = SUM('Table (2)'[Time (Minutes)])
Total Days = [Total Time (Minutes)] / (8.5*60)

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

2 REPLIES 2
v-jingzhan-msft
Community Support
Community Support

Hi @chintusasmal123 

 

The time type in Power BI represents a point in time rather than a Duration. As the current column is in Time type, you can create a new column with below DAX to convert it into minutes. 

Time (Minutes) = HOUR('Table (2)'[TimeHHMM])*60 + MINUTE('Table (2)'[TimeHHMM])

vjingzhanmsft_0-1716447061251.png

Then use the new minutes column for calculation. Create measures:

Total Time (Minutes) = SUM('Table (2)'[Time (Minutes)])
Total Days = [Total Time (Minutes)] / (8.5*60)

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

ryan_mayu
Super User
Super User

@chintusasmal123 

you need to convert to number and do the calculation then convert to text to show in days.

 

Solved: Re: [h]:mm:ss formatting calculating days rather t... - Microsoft Fabric Community

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.