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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
dgkallan
Helper II
Helper II

HR Data - Monthly Files

Let me lead by saying that I hope this isn't a dumb question.  This is more of a conceptual "how to handle" than a specific "what's the code" type of question.

 

I'm about to start some work where every month I will receive an updated HR employee data file.  Some people will terminate, new people will be hired, jobs will change, etc.  I'm going to use one measure as an example where I'm worried I won't be able to report historicals.  For example, turnover rate where this is roughly defined as people that left (for certain reasons) divided by the number of active employees.  I'm sure I can calculate this for a given file, but I"m worried that when the next file comes in I won't be able to know what last month's attrition rate was vs. what the new month's is and so on since's it just a new version of this data.  

 

I hope I'm explaining this correctly and perhaps I'm not seeing this clearly, but any guidance will help.

4 REPLIES 4
dgkallan
Helper II
Helper II

I'm thinking this might help explain. 

Let's say I get this for Sept

EmployeeStatusTerm Dt
11111Inactive9/1/2023
22222Active 
33333Active 
   

 

September turnover rate is 33# (1/3)

 

Then in October I get an update file.  I don't want to count the September turnover in there, so the October turnover is 25% (1/4).  Since I'm getting update files, I don't know how to preserve (other than using the turnover date somehow) the turnover rate by month.

EmployeeStatusTerm Dt
11111Inactive9/1/2023
22222Inactive 10/1/2023
33333Active 
44444Active 
55555Active 

hi @dgkallan ,

 
In similar situation, i handle it like:
1) In each monthly table, add a ReportDate column, like 2023/1/1 for 2023-Jan table.
2) Append all the monthly table.
3) Do the analysis on the ReportDate column or a related date column from a dedicated calendar table.

Thank you so much.  I was thinking something like this might be the answer.  Do you know of a way to automatically pull the file create date into a Report Date column so that it doesn't require manual manipulation?

 

And I wanted to use the solution where the new file is just dropped into the same folder every month.  Would that be how the append solution you suggested would work?  Or is there something different that has to be done to append it?

hi @dgkallan ,

 

It would be possible if your file name include date info, otherwise adding column might be necessary. 

 

If you familiar with Power Query code, you can duplicate queries and change the report date in advance editor easily. 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors