Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello all,
I have an emloyee table and created a measure called employee count.
Solved! Go to Solution.
Thank you for the idea! It gives diferent numbers but they stil lare not correct and it finds employees who were terminated before they were hired. Using a different measure I can calculate it properly:
@Anonymous Maybe try this:
Employee Count =
VAR __selectedDate = MAX('Date'[Date])
VAR __Table =
FILTER(
ALL('All Employees'),
[DTHired] <= __selectedDate && ( [DTTerminated] = BLANK() || [DTTerminated] >= __selectedDate )
)
VAR __Result = COUNTROWS(DISTINCT(__Table))
RETURN
__Result
Thank you for the idea! It gives diferent numbers but they stil lare not correct and it finds employees who were terminated before they were hired. Using a different measure I can calculate it properly:
User | Count |
---|---|
84 | |
70 | |
68 | |
58 | |
50 |
User | Count |
---|---|
43 | |
41 | |
34 | |
32 | |
31 |