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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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