Forum Discussion
Calculate Exposed Employees in a Period
Hello,
I have two databases: Employees and Expenditures. They are connected by an ID field.
The Employees database contains the StartDate and the Enddate in the company
The Expenses database contains the expenditures of the employees in the health plan and the payment month. Important: not all the Employess had Expenditures with the health plan.
I'd like to calculate the Expenditures Per Capita. To this became posible, I thought to create a Calculated Column on the Employes database. For example, if I filter the Payment Month from January/17 to July/17 and the employee started the company at November/16 and quited the company at March/17, the column would return the value 3. Because the employee was exposed from January/17 until March/17.
My main difficult is to make this filter became dynamic.
I attached a sample database with the expected values. I hope someone help me with my doubt.
Thank you in advance.
Fábio