Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Turnover rate after 90 days

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 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@v-lid-msft  Thank you. It will be very helpful to me

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

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
)

 

3.jpg


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,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-lid-msft  Thank you. It will be very helpful to me

amitchandak
Super User
Super User

@Anonymous 

Have diff between Hire Date and termination date

A new column

Diff = Datediff([Hire date], [Termination date],Day)

You can use that

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.