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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Problem with Time format

Hello everybody,

 

I am having real problems while managing hours. I have an Excel file with some columns with houer type. Whenever it goes over 24 hours, Power Query transforms it to a date / hours, but in the desktop I only got the rest of hours within a day. Power BI truncates the rest of days (whenever there are...). 

 

Anyway to solve this? I am getting really crazy with this. I really need a solution, this is for my daily work. Thanks a lot!!!

 

Chema_Ortega_Ga_0-1669368997368.png

 

4 REPLIES 4
ppm1
Solution Sage
Solution Sage

Please see this article for a good/flexible way to handle this.

Calculate and Format Durations in DAX – Hoosier BI

 

Pat

Microsoft Employee
lbendlin
Super User
Super User

Change the column type to numerical.  Multiply by 24 if you need hours and hour fractions insteadof the default day fractions.

Anonymous
Not applicable

Hi @lbendlin ,

 

Thanks a lot. I've tried it, but it does not work. Power BI does not make the conversion correctly. For example, I have 75:31:00 hours in Excel. When I get it in Power Query, I get 03/01/1900 3:31:00. Then I convert it to decimal number, and it shows "4.00" (days), when i should get "3.15" (APROX)...

seems to work for me.

 

 

let
    Source = #table({"Column1"},{{#duration(0,75,31,0)}}),
    #"Changed Type1" = Table.TransformColumnTypes(Source,{{"Column1", type number}})
in
    #"Changed Type1"

 

Can you post a sample Excel file?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.