Seconds to Duration Format

ab21

New Member
Joined
May 16, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a query that pulls duration of a call in seconds. I've created a measure that sums the duration per employee and formatted in dd:hh:mm:ss:
1. Measure = format(sum('Table'[Seconds Duration])/86400,"dd:hh:mm:ss")

The calculation is correct for hh:mm:ss, but when the dd (days) is less than 1 it shows 30 instead of 00. Example, duration is 68 seconds. Format presents 30:00:01:08.

Is there a way to correct this?

Thanks,
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I believe it would help if you can show how exactly the pulled data look like and how you calculate the duration. Perhaps copy paste few samples.
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,048
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top