Forum Discussion
Date Difference excluding weekends
Hello,
I have a starting date and an ending date and I need to count only the working days in between. In other words, the date difference (DATEIFF) between the ending and the starting without taking into consideration the weekends
ReleaseDt ClosedDt DaysDiff(Excludeweekends)
How can I achieve this?
Thank you,
16 Replies
- MarcoRottaResolver I
Hi there.
These solved threads might help you:
https://community.powerbi.com/t5/Desktop/Calculate-working-days-between-2-dates/td-p/230349
https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662
Regards.
- ssvrHelper III
Thanks.
But here they suggested create a Date Table for Isweekday flag.
I worked on almost 10 years data so, cant possible to create Date Table with Isweekday flag ??
- v-yulgu-msftMicrosoft Employee
Hi ssvr,
Yes. It is supported to create a calendar table with more than 10 years.
Regards,
Yuliana Gu
- AnonymousNot applicable
Hi,
This maybe the solution:
https://www.youtube.com/watch?v=bs3yzmf9elAhttps://www.youtube.com/watch?v=bs3yzmf9elA
Regards,