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) :
2012 | 90 | ||
Q1 | 65 | ||
January | 60 | ||
February | 3 | ||
March | 2 | ||
Q2 | 10 | ||
Q3 | 10 | ||
Q4 | 5 | ||
2013 | 45 | ||
Q1 | 8 | ||
Q2 | 8 | ||
Q3 | 14 | ||
Q4 | 15 | ||
2014 | 32 | ||
2015 | 28 | ||
2016 | 24 |
I'm a new with all this and I don't see how to achieved that.
Best regards,
Dominic