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
jimb1955
Frequent Visitor

How to convert days hours mins into seconds

I have a business duration column that shows Days hours minutes, It's currently text based and Unfortunately the way DB setup it can't be changed in Transform data to date/time, number or decimal without getting an error. In order for my measure to work it need to be in seconds or decimal. So how can I convert example show below into a column to show total seconds or decimal? 

 

jimb1955_0-1653528253884.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jimb1955 , My advice would be, Split by Delimiter in Power Query, you will get 6/8 columns

 

Then Create a new column

[Day]*24*3600 +[Hour]*3600 + [Minute]*60 + [Second]

 

Split Column Power Query: https://youtu.be/FyO9Vmhcfag

 

 

Another way is Text.Split and then use the index on list and Number.FromText to create a new column

Text.Split: https://youtu.be/Fn5mNEuRNVg

 

 

refer this example

Created distinct sorted comma-separated text from unsorted text: https://youtu.be/4bV30FEFjEM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@jimb1955 , My advice would be, Split by Delimiter in Power Query, you will get 6/8 columns

 

Then Create a new column

[Day]*24*3600 +[Hour]*3600 + [Minute]*60 + [Second]

 

Split Column Power Query: https://youtu.be/FyO9Vmhcfag

 

 

Another way is Text.Split and then use the index on list and Number.FromText to create a new column

Text.Split: https://youtu.be/Fn5mNEuRNVg

 

 

refer this example

Created distinct sorted comma-separated text from unsorted text: https://youtu.be/4bV30FEFjEM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors
Top Kudoed Authors