Forum Discussion
Convert the column into duration - Throwing an error
- 4 years ago
Hi bourne2000
You need to add Custom Column and then use Duration.FromText ( [Your Column Name] ) then press okay.
Make sure to then click ABC123 and switch to Duration.
All the best,
Theo
- bourne20004 years agoHelper V
TheoC Thanks. I tried
Getting below error message
Expression.Error: We couldn't parse the Duration literal.
Details:
24:18:34Error coming only the duration is more than 24 hrs. Please advise
- TheoC4 years agoCommunity Champion
Hi bourne2000
I believe the error is in your data, not the code itself. The error is basically saying that there is no such time as "24:18:34". It should be 00:18:34 if it is 12:18pm.
Basically what needs to happen here is that you need to split the column up into hours, minutes, seconds, and then divide hours by 24 to get days, hours. From here, you can then merge them back together. It's a quick process using Power Query.