Forum Discussion
Date Difference excluding weekends
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.
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-msft8 years agoMicrosoft Employee
Hi ssvr,
Yes. It is supported to create a calendar table with more than 10 years.
Regards,
Yuliana Gu
- ssvr8 years agoHelper III
Hi @Yuliana,
Thanks.
But its difficult to add 10 years canlender and we have to add for future dates also right ?
can you suggest any alternative for this requirement
- v-yulgu-msft8 years agoMicrosoft Employee
Hi ssvr,
You can create calendar table with CALENDAR() function like this:
Dim Table=CALENDAR(DATE(2008,1,1),DATE(2018,12,31))
Regards,
Yuliana Gu