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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Doknights
Regular Visitor

Time (minutes and seconds to seconds)

Hello All, 

 

I am attempting to build a call centre dashboard and I need some data in seconds in Power Query before I do my measures in Power BI desktop. The minutes and seconds are in one coloum and currently formatted in the way seen in the attached. 

Doknights_0-1678162063122.png

 

I know that I have to transform the data and remove the date but what is next to have this data converted into seconds as a duration for me to write my measures? 

 

Appreciate the support. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Doknights ,

 

Try the following codes:

= Time.Second([Total Talk])+Time.Minute([Total Talk])*60+Time.Hour([Total Talk])*60*60

It takes hours and minutes and converts them into seconds, adding the original seconds.

vstephenmsft_0-1679468096855.png

 

Best Regards,

Stephen Tao

 

If this 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
Doknights
Regular Visitor

Hey, Thanks but when I convert it to a decimal it is not working. Any way I can convert it to seconds in the current format?

 

Anonymous
Not applicable

Hi @Doknights ,

 

Try the following codes:

= Time.Second([Total Talk])+Time.Minute([Total Talk])*60+Time.Hour([Total Talk])*60*60

It takes hours and minutes and converts them into seconds, adding the original seconds.

vstephenmsft_0-1679468096855.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Anonymous
Not applicable

I would transform each datetime to a decimal number, and then multiply the result by 86400.

 

--Nate

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors