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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nmck86
Post Patron
Post Patron

Time to Seconds Conversion

Hello,

 

I have a field in my dataset that is MM:SS I converted it to this... and I want to have another field that displays this in seconds. I am hoping someone can assist me with this one.

 

https://drive.google.com/open?id=1FbkofaPhI5ouoXk_NLx9YZenTVEA_B9H 

 

Thanks!

1 ACCEPTED SOLUTION

Hi @nmck86,

Based on my test, you could refer to below formula:

TimeInSeconds = (HOUR('Data'[AvgTalkDuration])*60+ 
                 MINUTE('Data'[AvgTalkDuration]))*60

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

 

 

Community Support Team _ Daniel He
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

4 REPLIES 4
v-danhe-msft
Employee
Employee

Hi @nmck86,

It seemed your link could not be accessed:

1.PNG

Could you please upload it again?

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

 

I apologize, can we try this link instead. Thanks!

 

https://drive.google.com/file/d/1FbkofaPhI5ouoXk_NLx9YZenTVEA_B9H/view?usp=sharing

Hi @nmck86,

Based on my test, you could refer to below formula:

TimeInSeconds = (HOUR('Data'[AvgTalkDuration])*60+ 
                 MINUTE('Data'[AvgTalkDuration]))*60

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

 

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlB
Super User
Super User

Hi @nmck86

 

How about creating a new column like this:

 

TimeInSeconds =
VALUE ( LEFT ( Table1[Column], 2 ) ) * 60
    + VALUE ( RIGHT ( Table1[Column], 2 ) 

where Table1 is your table and Table1[Column] the column with the MM: SS

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.