Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
This is my sample measure I used for # of terminations
Solved! Go to Solution.
Hi @tebtim19 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. Please note that there is no relationship be created between Employees and dates table...
Terminations =
CALCULATE (
DISTINCTCOUNT ( Employees[EmpID] ),
FILTER (
'Employees',
NOT ( ISBLANK ( Employees[TermDate] ) )
&& 'Employees'[TermDate] <= SELECTEDVALUE ( 'Dates'[Date] )
)
)
Best Regards
Hi @tebtim19 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. Please note that there is no relationship be created between Employees and dates table...
Terminations =
CALCULATE (
DISTINCTCOUNT ( Employees[EmpID] ),
FILTER (
'Employees',
NOT ( ISBLANK ( Employees[TermDate] ) )
&& 'Employees'[TermDate] <= SELECTEDVALUE ( 'Dates'[Date] )
)
)
Best Regards
@tebtim19 , Try measure like
Terminations =
CALCULATE(COUNT(Employees[EmpID]),USERELATIONSHIP(Employees[TermDate],'Dates'[Date]),Employees[TermDate] <date(5999,12,31))
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |