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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Create sickness rate using columns from two tables

I need to calculate sickness rate that can be grouped by department, month/year and filtered by sickness type.

 

I have 2 tables

1. Headcount - it has staff detail for each month e.g ID =11 appears twice

 

 

2. Time off data - each day off is a row with relevant department and reason

 

Final Result should look as below. FINAL RESULTFINAL RESULTTIME OFFTIME OFFHEADCOUNTHEADCOUNT

 

I have been able to create new IDs in both table as ID-MonthYear and create a many to one relationship with TimeOff and Headcount data. With this i calculated rate as sum(Time off data [time off]/(sum(Headcount[fte])*21.  But when I attempt to create Final Result table as above, the rates are not accurate. Please help

Note: (sum(Headcount[fte])*21 calculates available days. As sickness rate is timeoff divided by avaliable days

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I am assuming you can common Month/Date and department dimension.

 

The this measure should work

divide(sum(Time off data [time off]),(sum(Headcount[fte])*21))

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

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , I am assuming you can common Month/Date and department dimension.

 

The this measure should work

divide(sum(Time off data [time off]),(sum(Headcount[fte])*21))

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
Anonymous
Not applicable

Do you mean instead of creating and using ID-yearMonth as common link for the relationship, I create a dept-yearMonth column and  use this as a common link for the relationship?

Anonymous
Not applicable

This worked - creating and using dept-month/year as the new ID 
Thank you @amitchandak 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors