Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
Does anyone know a formula to calculate the number of working days between two dates ?
Thanks
The formula needs to exclude the weekends and other non working days
Hi, @gregboothdelt ;
You could create a date table ,then create a measure to calculate a measure.
Table = CALENDAR(DATE(2021,4,9),TODAY())
then create a measure
Count = CALCULATE(COUNT([Date]),FILTER(ALL('Table'),[Date]<=TODAY()&&[Date]>=DATE(2021,9,1)&&WEEKDAY(MAX([Date]),2)in {1,2,3,4,5}))
here could change Today() to end date , DATE(2021,9,1) to start date.
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Share some data and show the expected result.
@gregboothdelt
DATEDIFF(startdate,enddate,DAY)
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |