Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Last year count with userelationship dax

Hi experts,
Need to calculate last year new hire count 
Please help.

 

New Hire =
CALCULATE(
COUNT('Exit,Roster,Leave,WFH'[ID]),
USERELATIONSHIP('Calendar'[Date], 'Roster'[Hire Date]))

New Hire PY =
CALCULATE( DISTINCTCOUNT('Roster'[ID]),
SAMEPERIODLASTYEAR('Calendar'[Date]),
USERELATIONSHIP('Calendar'[Date], 'Roster'[Hire Date]))

getting blank output for second formula