Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
unfortunately, Saturdays and Sundays are sometimes subtracted in these ranges:
Ideally, the table in the report should only show employees who have had a continuous absence of 30 days or more.
Thank you in advance.
Marcin
Solved! Go to Solution.
@maart666 , Using this blog, you should get new start and new end date, when there is split
Now using the distinct of that using summarize , calculate work day using calendar
Sumx(Addcolumns(Summarize(Table, Table[Employee], Table[New Start], New[End Date]) , "_1", COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR([New Start Date],[New End Date]),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1)) ), [_1])
Also refer
How to calculate Business Days/ Workdays, with or without date table: https://youtu.be/Qv4wT8_P-AA
@maart666 , Using this blog, you should get new start and new end date, when there is split
Now using the distinct of that using summarize , calculate work day using calendar
Sumx(Addcolumns(Summarize(Table, Table[Employee], Table[New Start], New[End Date]) , "_1", COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR([New Start Date],[New End Date]),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1)) ), [_1])
Also refer
How to calculate Business Days/ Workdays, with or without date table: https://youtu.be/Qv4wT8_P-AA
Thank you amitchandak!
for the first part works perfekt!
But when but are you able to help with the solution when the days when absences are not entered as a continuous range, but only for working days. The range starts on Monday and ends on Friday.
So as a continuity I have to treat the Friday date and the date of the next Monday.
Thank you!
Hi amitchandak,
I was able to adjust your solution to my needs.
Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |