Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Forecasting employees retirement

$
0
0

Hi, I need a way to provide the number of employees who are or will be illegible to retirement for the next 5 years. This logic is base on the nearest date between the 60th anniversary of the employee (birthday + 60) and the 30th year of employment (HiredDate+30). This logic is handle with a named calculation in the DSV of the Employee dimension.

The end result should show the number of employees who are illegible to retirement (including those who were in the previous periods, but are still working) for the first period selected and the number of employee who are going to become illegible in each other period selected. I'm refering to "periods" instead of Year because the solution should work at level of the hierarchy.

The fact table is a monthly periodic snapshot where the grain is one row per employee per month. Here's a simple example to work with :

DimEmployee (EmployeeID, Code, Name, Birthday, HiredDate, RetirementIllegibleDate, other atribute...)
DimMonth (MonthID, Year, Quarter, Month) with two hierarchies Fiscal and Calendar
FactHR (MonthID, EmployeeID, Fact1, Fact2, ... )

I expect the result to look like (The first period - January - includes employees who were illegible but are still working) :

201290
Q165
January60
February3
March2
Q210
Q310
Q45
201345
Q18
Q28
Q314
Q415
201432
201528
201624

I'm a new with all this and I don't see how to achieved that.

Best regards,

Dominic



Viewing all articles
Browse latest Browse all 2472

Trending Articles