Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 :
Solved! Go to Solution.
@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
@alexcatala , Please refer to this
@amitchandak I have already the formula for the active employees, but as I am trying to figure it out how many of them are under 23, it might be a different formula.
I used 2 measures to calculate employees under 23 and also to find out the active employees.
Now I only need how to link between them and make it work.
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |