cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

HR Dashboard Calculate turnovers and internal movements

I´m making a HR dashbord and want to calculate both internal and external movments.

 

My data is uppdated every months,  how can i make a messure that show me how many have left the company anda how many have change department. Also if I filter month by month and total if a filter total year. 

 

I also want to se by department if i Filter on it. 

See exampel data:

The date is from the every file that I get every month, The emplyee with red collor(1005) ended his empoyment that month. The orange one (1002) change department that month. Ande the green(1006) is a new hire.

 

Is it possible to do a messure with this? so I can see how many turnoves by department is a internal and how many have left the company+

 

Many thanks

 

DateIDDepartment  
2022-01-281000Sales  
2022-01-281001Sales  
2022-01-281002HR  
2022-01-281003HR  
2022-01-281004Digital  
2022-01-281005Digital  
2022-02-281000Sales  
2022-02-281001Sales  
2022-02-281002Sales  
2022-02-281003HR  
2022-02-281004Digital  
2022-02-281006Digital  
2022-03-281000Sales  
2022-03-281001Sales  
2022-03-281002Digital  
2022-03-281003HR  
2022-03-281004Digital   
2022-03-281006Digital  
     
     
     
5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

Create two measures.

Count of change department =
CALCULATE (
    COUNT ( 'Table'[ID] ),
    FILTER (
        'Table',
        'Table'[Date] = SELECTEDVALUE ( 'Table'[Date] )
            && 'Table'[ID]
                IN SELECTCOLUMNS (
                    FILTER (
                        ALL ( 'Table' ),
                        MONTH ( 'Table'[Date] )
                            = MONTH ( SELECTEDVALUE ( 'Table'[Date] ) ) - 1
                    ),
                    "ID", 'Table'[ID]
                )
                    && 'Table'[Department]
                        <> MAXX (
                            FILTER (
                                ALL ( 'Table' ),
                                'Table'[ID] = EARLIER ( 'Table'[ID] )
                                    && MONTH ( 'Table'[Date] )
                                        = MONTH ( EARLIER ( 'Table'[Date] ) ) - 1
                            ),
                            'Table'[Department]
                        )
    )
)
Count of left =
CALCULATE (
    COUNT ( 'Table'[ID] ),
    FILTER (
        'Table',
        'Table'[Date] = SELECTEDVALUE ( 'Table'[Date] )
            && NOT (
                'Table'[ID]
                    IN SELECTCOLUMNS (
                        FILTER (
                            ALL ( 'Table' ),
                            MONTH ( 'Table'[Date] )
                                = MONTH ( SELECTEDVALUE ( 'Table'[Date] ) ) + 1
                        ),
                        "ID", 'Table'[ID]
                    )
            )
                && SELECTEDVALUE ( 'Table'[Date] ) <> MAXX ( ALL ( 'Table' ), 'Table'[Date] )
    )
)

Get the correct result.

vkalyjmsft_0-1649410759519.png

vkalyjmsft_1-1649410774017.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

hi @v-yanjiang-msft thanks for the help! It´s alomst gives me what i´m searching for.

In janary 2022 i dont get the count of change of department and in december i get that al have left.

PatricL_0-1649420482374.png

Do you have any solution for this problem?

 

Hi @Anonymous ,

Does the formula work for sample in the original post but not work in your fact data? Actually, I'm not very clear about your problem without the sample data, would you please provide more information?

Best Regards,
Community Support Team _ kalyj

davehus
Memorable Member
Memorable Member

Hi @Anonymous , Have you got a status column that indicates the changes you are trying to measure?

Anonymous
Not applicable

HI @davehus 

No, only a column with a start date at the company.

nothing that shows ID has transfer inside the company. more than a new department name 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors