Forum Discussion

blens1's avatar
blens1
New Member
6 years ago
Solved

Duration Error over 24:00:00

I currently am automatically importing an excel worksheet into PowerBi and one column is imported as a text with a format of 00:00:00 (hours:minutes:seconds).  When I Transform the Data Type to Duration anything over 24 hours (example: 33:30:30) shows an "Error".  This should reflect 1.09:30:30.   Ultimate goal is to do an analysis on the sum of duration based on type.

  • Hi blens1 

    try to create a custom column

    = #duration(0, Number.FromText(Text.Start([Column1], 2)), Number.FromText(Text.Middle([Column1], 3,2)), Number.FromText(Text.End([Column1], 2)))

1 Reply

  • az38's avatar
    az38
    Icon for Community Champion rankCommunity Champion

    Hi blens1 

    try to create a custom column

    = #duration(0, Number.FromText(Text.Start([Column1], 2)), Number.FromText(Text.Middle([Column1], 3,2)), Number.FromText(Text.End([Column1], 2)))