I cannot think of a solution for this:
I have a table with the following columns:
Employee id, hired date, fired date, current_status
.
current_status
is a conditional column showing status of employee for a current date i.e. if fired date is blank the status is "working", else the status is "fired".
I want to create a measure, which would show count of employees by their status as of end of selected month.
E.g an employee's current status may be "fired", but as of end of June 2019 his status was "working", so in the context of previous date he should be counted as working.