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.
Hello
I am trying to calculate my turnover rate after 90 days, considering the new hires who left the company after 90 days of their start date,
Is there some DAX that can help me?
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
We can try to create a measure to meet your requirement:
Rate =
DIVIDE (
CALCULATE (
DISTINCTCOUNT ( 'Table'[Name] ),
FILTER (
'Table',
'Table'[HireDate] <> BLANK ()
&& 'Table'[LeaveDate] - 'Table'[HireDate] >= 90
)
),
CALCULATE (
DISTINCTCOUNT ( 'Table'[Name] ),
FILTER ( 'Table', NOT ( 'Table'[LeaveDate] - 'Table'[HireDate] <= 90 ) )
),
0
)
If it doesn't meet your requirement, Could you please show the exact expected result based on the tables that we have shared?
By the way, PBIX file as attached.
Best regards,
@Anonymous
Have diff between Hire Date and termination date
A new column
Diff = Datediff([Hire date], [Termination date],Day)
You can use that
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 | |
97 | |
75 | |
63 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |