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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Doknights
Frequent 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
Frequent 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.