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
Anonymous
Not applicable

How to split HH:MM:SS in 3 columns

Hi Guys,

 

I have 13:25:55 and I need just one column with the seconds, 55.

I've already tried slipt column by delimiter : , but didn't work.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@Anonymous A cleaner way might be to use the HOUR, MINUTE, and SECOND functions to extract the values.

 

-Parker

View solution in original post

Birdjo
Resolver II
Resolver II

Hello @Anonymous,

You can use the HOUR, MINUTE and SECOND functions like this:

Create 3 new columns with the following DAX:

 

Hours = HOUR('Table1'[TimeColumn])
Minutes = MINUTE('Table1'[TimeColumn])
Seconds = SECOND('Table1'[TimeColumn])


Here's the result:
image.png

View solution in original post

3 REPLIES 3
Birdjo
Resolver II
Resolver II

Hello @Anonymous,

You can use the HOUR, MINUTE and SECOND functions like this:

Create 3 new columns with the following DAX:

 

Hours = HOUR('Table1'[TimeColumn])
Minutes = MINUTE('Table1'[TimeColumn])
Seconds = SECOND('Table1'[TimeColumn])


Here's the result:
image.png

Anonymous
Not applicable

@Anonymous A cleaner way might be to use the HOUR, MINUTE, and SECOND functions to extract the values.

 

-Parker

BFroc
Frequent Visitor

Make sure you use some of teh advanced options when you're using the split column by delimiter function. You want a Right split, and only the first delimiter.

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.