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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Duration converted to a Date Time Format

I have downloaded data from Garmin. The Elapsed time field is a General datatype and looks like this:

 

brandimore_0-1657896583482.png

 

It lands in Power BI and ends up like this:

 

brandimore_1-1657896692608.png

 

 

I've searched through these forums and my Excel data is already in General format. The thing is that I don't need the milliseconds and happy to remove it.

 

I've tried changing the Elapsed time to duration in PBI and that doesn't work. I tried also to change the format to hhmmss and it doesn't work.

 

There seems to be conflicting ways to get this to work. I'm stuck. Can someone provide assistance? 

 

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think I figured it out. I have the field in Excel set to General

I import the data

leave it as a Date/Time

I don't transform anything but go to the Data tab in the builder and change the format to be hh:nn:ss

 

brandimore_0-1657907270936.png

 

Ignore the 2nd 2 columns I was testing.

 

It would be nice though if PBI did not convert these types of data. Leave it as is. I can't figure out if that's an option or not...

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I think I figured it out. I have the field in Excel set to General

I import the data

leave it as a Date/Time

I don't transform anything but go to the Data tab in the builder and change the format to be hh:nn:ss

 

brandimore_0-1657907270936.png

 

Ignore the 2nd 2 columns I was testing.

 

It would be nice though if PBI did not convert these types of data. Leave it as is. I can't figure out if that's an option or not...

James-Harpin
Resolver IV
Resolver IV

Hi @Anonymous 

I did a test of this and I got it to work by when importing the excel file selecting transform, then changing the data type to 'time'

JamesHarpin_0-1657898356858.png

 

Anonymous
Not applicable

Thank you for the response. I just made a copy of the column and imported the file back into my model.

 

I loaded it and clicked transform.

I then changed it to Time.

 

This is what I see

brandimore_0-1657898808974.png

 

 

 

@Anonymous is that the desired outcome you want?

Anonymous
Not applicable

In my output? No. All it's doing is extracting the Time out of the date.

 

The purpose of pulling in this data is to answer the question: How many hours\minutes have I spent on each activity.

 

Therefore:

XC sii   | 32hrs 3minutes

Run     | 14hrs 5 mintutes

 

How can you tell PBI desktop to not change the format from the Excel file? If it stayed the way it is, I could summarize the hours

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.