Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Date time formatting for more than 24 hour

Hi, I have date time format [h]:mm:ss in excel file. When I import that file it automatically convert to 01/01/1900 05:28:10 AM rather than showing the same format I have in excel. I belive this is ...
  • ronrsnfld's avatar
    ronrsnfld
    3 years ago

    Excel stores durations as days and fractions of a day. You can set the cell format to show hours:minutes:seconds.fractions_of_seconds. However, you cannot change what you see in the formula bar if the cell is formatted as [h]:mm:ss.000

     

    In Power Query, hours > 24 will be shown as Days in the duration typed column.

    In Power BI, duration will be shown as a decimal number.

     

    Neither will show the [h]:mm:ss format you can see in an Excel cell.

     

    If that is an absolute requirement, you could construct a text string, I suppose.