Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
jomnr
Regular Visitor

Managing absences per week and per teams

Hi everyone,

I'm trying to show the numbers of days of vacation taken by the employees per week and per team. I have tried this potential solution but although it works fine for vacations per employee and per week,  it does not add up days for teams : https://community.powerbi.com/t5/Desktop/Managing-absences-per-month/m-p/3144462#M1062939  (Thanks @Ahmedx ).

Here are a few samples of my data (the two tables have a relation through the EmployeeID) :

Table for the time off of each employee :

EmployeeIDStartDateEndDate
12023-03-242023-03-24
12023-04-032023-04-07
22023-04-032023-04-14
22023-05-102023-05-12
22023-08-082023-08-10
32023-08-072023-08-11
42023-06-122023-06-12
42023-08-082023-08-08
42023-09-112023-09-13
52023-08-092023-08-18

Table for the teams :

EmployeeIDTeam
1Team 1
2Team 1
3Team 2
4Team 2
5Team 2

 

Thanks you very much for you help !!

Joe.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jomnr , Have a date tablw with week , month , qtr etc column, This HR or between date logic should help

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

 

 

For calendar

https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...
https://medium.com/chandakamit/cheat-sheet-calendar-of-any-standard-month-just-one-variable-apart-5e...
https://amitchandak.medium.com/cheat-sheet-power-query-financial-year-calendar-5ceaacb520f1
DAX Calendar - Standard Calendar, Non-Standard Calendar, 4-4-4 Calendar
https://www.youtube.com/watch?v=IsfCMzjKTQ0&t=145s
Power BI Date Table: https://www.youtube.com/watch?v=cN8AO3_vmlY&t=18180s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@jomnr , Have a date tablw with week , month , qtr etc column, This HR or between date logic should help

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

 

 

For calendar

https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...
https://medium.com/chandakamit/cheat-sheet-calendar-of-any-standard-month-just-one-variable-apart-5e...
https://amitchandak.medium.com/cheat-sheet-power-query-financial-year-calendar-5ceaacb520f1
DAX Calendar - Standard Calendar, Non-Standard Calendar, 4-4-4 Calendar
https://www.youtube.com/watch?v=IsfCMzjKTQ0&t=145s
Power BI Date Table: https://www.youtube.com/watch?v=cN8AO3_vmlY&t=18180s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.