How to add a count function to measures

Yes, DISTINCT COUNT would be very useful.
We have a requirement where we need a distinct count of employees who are active across multiple pay periods.