Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn 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))