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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Galag2612
Regular Visitor

Combination of 12 Excel Employee files (1 per month) - yearly average for ees who joined mid-year

Hello,

I'm trying to compute data based on 12 HRIS monthly files.

The goal: calculate the yearly working time per employee (between 0 and 1 - 0: the employee did not work this year; 1: the employee worked full time). 

 

I manage to combine the 12 file into 1 data set and compute average working time. The problem is for employees that have joined during the year. As they are not listed in the first files, the average calculation is made on working time for active months, which is not showing real prorated working time:

Example: an employee joined full-time in October 2022, worked 3 months full time.

Yearly working time = 3 / 12 = 0.25. 

In this case, it's calculating 3/3 = 1 - since the employee is not listed in the first 9 files.

 

Could you please advise?

Thank you very much in advance,

Martin

3 REPLIES 3
olgad
Super User
Super User

Hi, here is my data and calculation

olgad_0-1680506128026.png

olgad_1-1680506163563.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
olgad
Super User
Super User

Hi, if you create a calculated column for each employee, 1/12, then if you sum up, for those who did one year it will be one, but for those who didnt it will calculate to 3/12


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Hi olgad,

Thank you for replying. I'm not sure I understand the solution though:
The data I have is a combination of 12 files, meaning that per employee that was active during the whole 22 period, I have 12 lines of data. For those who were there half of 2022, I only have 6 lines so I'm not able to calculate on the 6 missing lines to have them at 0 for example.

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