Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Convert String to Duration

Hi All,   I just wanted to ask for help on how to convert the Time to first response: Elapsed column, with type string, to duration by still containing the __h __m format?   The business us...
  • wdx223_Daniel's avatar
    3 years ago

    =Duration.From(Expression.Evaluate(List.Accumulate({{"h","/24+0"},{"m","/1440"}},[#"Time to first response: Elapsed"],(x,y)=>Text.Replace(x,y{0},y{1}))))