RattlingCarp3048
Board Regular
- Joined
- Jan 12, 2022
- Messages
- 202
- Office Version
- 365
- Platform
- Windows
in my table i have 2 date/time columns and need to calculate the difference between them in hours. I manually entered this formula into a newly added custom column directly in the table. however, i would like the power query to do the calculation instead. how do i convert this excel function into something the power query custom column will accept?
=IF(OR([@ACS]="",[@GPU]=""),"NO SCAN",(NETWORKDAYS([@ACS],[@GPU],Table3[Holidays])-1-MOD([@ACS],1)+MOD([@GPU],1))*24)
expected outcome
=IF(OR([@ACS]="",[@GPU]=""),"NO SCAN",(NETWORKDAYS([@ACS],[@GPU],Table3[Holidays])-1-MOD([@ACS],1)+MOD([@GPU],1))*24)
expected outcome
ACS | GPU | ACS to GPU (Hours) |
5/23/2024 10:18 | 5/24/2024 13:46 | 27.48 |