Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Cumulative Distinct Employee Count with Multiple Filters

Hi,

I have an employee snapshot taken monthly and I need to do get a distninct active employee count every month.

I have seen several examples and still cannot get it to work correctly. 

 

My problem is that the employees hired before my graph range (based upon a rolling 13 months) are not included

 

My last example measure is 

 

Test Employee Count = 
VAR MaxDate= MAX('Filter Dates'[Date])
VAR MinDate=min('Filter Dates'[Date])
RETURN
Calculate(DISTINCTCOUNT(vwMSRHireAttrition_UATT[UniqueId]),
OR(vwMSRHireAttrition_UATT[Adjusted Hire Date]<=MinDate, ISBLANK(vwMSRHireAttrition_UATT[Adjusted Hire Date])),
vwMSRHireAttrition_UAT[Termination Date]>=MaxDate)
 
 
I need the user to be able to reconcile the rolling count vs the monthly hiring and termination data.   
 
Any help would be greatly appreciated and I am happy to use something else. 
Thanks

3 Replies