Forum Discussion
skv17
Helper II
2 years agoDATEDIFF skipping weekends and public holidays
| Scan Received Date | Scan Load Date | Despatch Date | Scan Unload Date |
| 05/072024 | 08/072024 | 9/07/2024 | 11/07/2024 |
HI Team, have these 4 columns , need to calculate datediff for :
- Scan Received Date to Scan Load Date
- Scan Load Date to Despatch Date
- Despatch Date to Scan Unload Date
skipping weekends and public holidays (have a table called PUBLIC_HOLDAYS with column DATE which has all the public holidays)
need an custom m query or not sure if its better to do a power bi measure .
skv17 ,
Can you try NETWORKDAYS dax function,
https://learn.microsoft.com/en-us/dax/networkdays-function-dax
1 Reply
- Arul
Super User
skv17 ,
Can you try NETWORKDAYS dax function,
https://learn.microsoft.com/en-us/dax/networkdays-function-dax