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

Excel Duration import to Power BI Issue

I need urgent help with my query.


I have a excel data in given format.
Duration = 123:47:00 custom formatted with [h]:mm:ss

Actual value: 1/5/1900 3:47:00AM 

Note: I do not have start date or end date. I have total duration for each month.

Sshah5_1-1623019459514.png

 


When I try to import the data in Power BI. I am seeing abc format in 1/5/1900 3:47:00 AM. I can convert this to Date/time which represent the same value. 

Sshah5_0-1623019434312.png

 

When I change data type to Time, I see 3:47:00, which is not correct hours and min. 

How do I get the same duration 123:47:00 in Power BI?
I really tried multiple solution, nothing really worked.


Thank you for your help in advance.

5 REPLIES 5
artemus
Microsoft Employee
Microsoft Employee

Change the data type to duration, not time. The time data type is for time of day.

Anonymous
Not applicable

I tried that first. Didn't work.
Getting below error.

Sshah5_0-1623034877649.png

 

Ah, sounds like the format has already been set by Excel to a datetime format. In that case, just create a custom column and subtract #datetime(1900, 0, 0, 0, 0, 0)

Anonymous
Not applicable

Hello,


Note sure if I tried correctly as you said but getting error as shown below.

Sshah5_0-1623072206606.png

 

Anonymous
Not applicable

Below calculation worked but still off by 1 day.
Currently getting 4days 3hrs 47 min. However its should be 5 days 3hrs 47 min = (5*24)120hrs + 3 hr = 123hrs 47 min.

 

Sshah5_0-1623084375915.png

 

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.

Top Solution Authors