Forum Discussion
marabeda
Helper I
4 years agoduration above 24h into decimal
Dear Group, I am new on Power BI. I would like to transform columns Durata and Tempo in decimal or duration in Power query editor. I saw different solutions, but I was not able to do it. Can anyone h...
- 4 years ago
Replace entire yellow line with this (The formula which had given was to be inserted in a custom column which will generate below code)
#"Personale" = Table.AddColumn(#"Modificato tipo", "Custom", each [n=Text.Split([Durata],":"), d=#duration(Number.IntegerDivide(Number.From(n{0}),24),Number.Mod(Number.From(n{0}),24),Number.From(n{1}),0)][d]) - 4 years ago
Thank you very much. It works!!😁
Fowmy
Super User
4 years agomarabeda
Changing Data Type to Duration should work for you but what does last row with 55:00 mean here?
What is the conversion expected?
- marabeda4 years ago
Helper I
Thank you for your suggestion but if I use duration I have an Error because 55 hours are above 24h.
At the end, I need to sum up for each employees the hours and minutes worked.