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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Sean29
Frequent Visitor

Convert run times in PQ

I am having trouble converting 2.4km run times, to correctly display data. Example run is 9:56 (min,sec). But when converted to PQ and transform represents as 12:09:56 AM.

 

Is there way to convert this is PQ to represent mm:ss?

1 ACCEPTED SOLUTION
Omid_Motamedise
Super User
Super User

See this one
= [a=Time.From("00:9:56"),b=#duration(0,0,Time.Minute(a),Time.Second(a))][b]

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

View solution in original post

3 REPLIES 3
Omid_Motamedise
Super User
Super User

See this one
= [a=Time.From("00:9:56"),b=#duration(0,0,Time.Minute(a),Time.Second(a))][b]

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
shafiz_p
Super User
Super User

Hi @Sean29  You could try to add a custom column with this code:

= Text.From(Duration.From([YourTimeColumn]), "mm:ss")

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz 

I received couldn't convert to Duration error?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.