Forum Discussion
VivekBusi03
4 years agoFrequent Visitor
Working Hours in power query
Hi All,
I got stuck at a task which I was trying in Power Query. I have 2 columns (times) "LogOut" & "LogIn". Based on these columns I need a new column which shows the Time period between the "LogOut" & "LogIn" columns.
Thank You!
2 Replies
- jgeddes
Super User
Table.AddColumn(#"Changed Type1", "workingHours", each Duration.From([logout]) - Duration.From([login]))
will work as long as the login and logout columns are text type, not time type.
- VivekBusi03Frequent Visitor
Hi jgeddes ,
Thanks for you the reply, I really appreciate for the solution.
But it's throwing an error. at the end.