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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Switto
Helper III
Helper III

Converting seconds into HH:MM:SS

Hi All,

I am trying to convert the seconds to HH:MM:SS format using "https://community.powerbi.com/t5/Desktop/How-to-convert-seconds-to-hh-mm-ss/m-p/310219#M137405" solution however ,I am getting error stating "Expression.Error: We cannot apply field access to the type Number.Details:Value=0 Key=Unit effort in Seconds".

I have used the same reference "#time(0,0,0) + #duration(0,0,0[Unit effort in Seconds])" to convert the data but it is not working.

Any help will be appreciated.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Switto ,

 

New column = left([col])*3600 + mid([column],3,2)*60 + right([column],2)*1

 

if needed refer:https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-usi...

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Switto ,

 

New column = left([col])*3600 + mid([column],3,2)*60 + right([column],2)*1

 

if needed refer:https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-usi...

Thanks @amitchandak .

I got an error while using your suggestion, however, I tried the post you suggested and it worked 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors