Forum Discussion
New_be
5 years agoHelper V
Convert -ve values to +ve values in Power Query
Hi everyone! Wish you all have a very nice day! Based on the image above, i have TimeIn & TimeOut. So i try to get the hours between these 2 times, meaning that TimeOut - TimeIn. So based o...
- 5 years ago
New_be Try this:
Number.Abs(Number.From([Adj_OutTime]) - Number.From([Adj_InTime])) * 24
amitchandak
5 years agoSuper User
New_be , I think because the out time in on next day
if Duration.Hours([Adj_hour_worked]) <0 then [Adj_hour_worked] + duration(1,0,0) else [Adj_hour_worked]
New_be
5 years agoHelper V
Indeed! It is because the out time is in the next day & vice versa. Thanks!
- amitchandak5 years agoSuper User
New_be , In case of the issue, is resolved. Accept all suitable solutions for others to get a similar solution.