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',...
- 5 years ago
alexcatala , if age is a column
active2 employees = var currentdate = MAX(d_DateTable[Date])
return CALCULATE(DISTINCTCOUNT(f_Employees[EmplCode]),f_Employees[EmpJoinDate]<=currentdate,or(ISBLANK(f_Employees[EmpLeavDate]),f_Employees[EmpLeavDate] > currentdate),'f_Employees',f_Employees[EmpAge] <=23)if measure please share formula
amitchandak
Super User
5 years agoalexcatala , if age is a column
active2 employees = var currentdate = MAX(d_DateTable[Date])
return CALCULATE(DISTINCTCOUNT(f_Employees[EmplCode]),f_Employees[EmpJoinDate]<=currentdate,or(ISBLANK(f_Employees[EmpLeavDate]),f_Employees[EmpLeavDate] > currentdate),'f_Employees',f_Employees[EmpAge] <=23)
if measure please share formula
alexcatala
Helper IV
5 years ago