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! Request now

Reply
davidz106
Helper III
Helper III

Duration to seconds

In my souce have duration given as mm:ss, for example: 02:15 as in 2 minutes and 15 sec.

 

Power BI understands this 02:15:00 as 02 hours 15 minutes and 00 seconds. Any idea how could I get it to understand it as min:sec. 

 

I can add "00:" infront of every value in my source but I would like to find a better way.

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

There is no better way other than pushing any transformation/conversion to source itself. If you do it at Power BI side, at the best, it will slightly underperform than source.

If you want to do it in Power BI, before Changed Type step, prefix "00:" in this column and then do Changed type. You can issue a Table.Replace command. Example below where Time is the column name

= Table.ReplaceValue(Source,each [Time],each "00:"&[Time],Replacer.ReplaceValue,{"Time"})

Default behavior of Power BI can't be changed. 

View solution in original post

2 REPLIES 2
Payeras_BI
Solution Sage
Solution Sage

Hi @davidz106 ,

What about adding it in Power Query before loading to the model?

Payeras_BI_0-1656436424079.png

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Vijay_A_Verma
Super User
Super User

There is no better way other than pushing any transformation/conversion to source itself. If you do it at Power BI side, at the best, it will slightly underperform than source.

If you want to do it in Power BI, before Changed Type step, prefix "00:" in this column and then do Changed type. You can issue a Table.Replace command. Example below where Time is the column name

= Table.ReplaceValue(Source,each [Time],each "00:"&[Time],Replacer.ReplaceValue,{"Time"})

Default behavior of Power BI can't be changed. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.