Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'm trying to count how many employees where not there at a specific date which is a slicer/measure
I tried many things with no success.
Thanks for your help.
Solved! Go to Solution.
Hi @ArmellA ,
I think Dates table should have a relationship with employee table.
You can try this measure.
IDCount =
VAR _CountAll =
CALCULATE ( DISTINCTCOUNT ( employee[ID] ), ALL ( employee ) )
VAR _CountInRange =
CALCULATE (
DISTINCTCOUNT ( employee[ID] ),
FILTER ( ALL ( employee ), employee[Date] = SELECTEDVALUE ( Dates[Date] ) )
)
RETURN
_CountAll - _CountInRange
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ArmellA ,
I think Dates table should have a relationship with employee table.
You can try this measure.
IDCount =
VAR _CountAll =
CALCULATE ( DISTINCTCOUNT ( employee[ID] ), ALL ( employee ) )
VAR _CountInRange =
CALCULATE (
DISTINCTCOUNT ( employee[ID] ),
FILTER ( ALL ( employee ), employee[Date] = SELECTEDVALUE ( Dates[Date] ) )
)
RETURN
_CountAll - _CountInRange
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @ArmellA
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 9 | |
| 8 | |
| 8 |