Forum Discussion
alexcatala
Helper IV
5 years agoemployees under 23 dynamic
Hi, I am trying to figure it out the number of employees under 23 who are currently active. I have the formula for the employees under 23 : 23 age = CALCULATE(COUNTROWS(FILTER('f_Employees',...
Ashish_Mathur
Super User
5 years agoHi,
Try this measure
active2 employees = var currentdate = MAX(d_DateTable[Date])
return CALCULATE(DISTINCTCOUNT(f_Employees[EmplCode]),(f_Employees[EmpJoinDate]<=currentdate||ISBLANK(f_Employees[EmpLeavDate])||f_Employees[EmpLeavDate]>currentdate)&&f_Employees[EmpAge] <=23)
Hope this helps.