cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SM4437
Helper I
Helper I

Multiple Cols Convert Txt HHH:MM:SS to Duration (Hrs)

Hi I have multiple colums for txt HHH:MM:SS and i'd like to convert to Duration (Hours), any help would be appreciated.

 

SM4437_1-1669686592973.png

 

 

2 ACCEPTED SOLUTIONS

Hi @SM4437 ,

 

According to your screenshot, I think your columns should be in text data type due to your hour is larger than 24. So we couldn't use Hour() to get hour value. Here I suggest you to use Split function to get hour value before first ":".

 

Best Regards,
Rico Zhou

 

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

3 REPLIES 3

Thanks, does that mean i need to split all colums? in Excel you can format [H],MM,SS to show more that 24hrs, can you not do this in Power BI?

Hi @SM4437 ,

 

According to your screenshot, I think your columns should be in text data type due to your hour is larger than 24. So we couldn't use Hour() to get hour value. Here I suggest you to use Split function to get hour value before first ":".

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.