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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Twizxup
Frequent Visitor

Counting Joiners & Leavers in Snapshot-Appended Report Based On Report Date

Hi All,

 

I receive a weekly report that I append to the previously received reports each week. This report includes the Report Date, Employee ID, Name, and Division. For this example, pretend I am in the HR division. I need to use this report to display the number of:

 

New Hires (i.e. if they weren't on last week's report but are on this week's report)

Transfer-Ins (i.e. if they were in a different division last week but are in HR this week)

Transfer-Outs (i.e. if they were in HR last week but are in a different division this week)

Terminations (i.e. if they were on last week's report but are not on this week's report)

 

Sample data:

Report DateEmployee IDNameDivision
7/31/20241JohnSales
7/31/20242JeremySales
7/31/20243JacobHR
8/7/20241JohnSales
8/7/20242JeremySales
8/7/20243JacobHR
8/7/20244JessicaFinance
8/14/20241JohnSales
8/14/20242JeremyHR
8/14/20243JacobHR
8/14/20244JessicaFinance
8/21/20242JeremyHR
8/21/20243JacobHR
8/21/20244JessicaFinance
8/21/20245JulianHR
8/21/20246JamieHR
8/28/20243JacobHR
8/28/20244JessicaFinance
8/28/20245JulianHR
8/28/20246JamieFinance

 

Explanations:

Report DateMovement TypeCountExplanation
8/7/2024New Hire1Jessica joined the company
 Transfer-In0 
 Transfer-Out0 
 Termination0 
8/14/2024New Hire0 
 Transfer-In1Jeremy transferred from Sales to HR (our department)
 Transfer-Out0 
 Termination0 
8/21/2024New Hire2Julian and Jamie both joined the company
 Transfer-In0 
 Transfer-Out0 
 Termination1John left the company
8/28/2024New Hire0 
 Transfer-In0 
 Transfer-Out1Jamie transferred from HR (our department) to Finance
 Termination1Jeremy left the company

 

Movement summary:

Report DateMovement TypeCount
8/7/2024New Hire1
8/14/2024Transfer-In1
8/21/2024New Hire2
8/21/2024Termination1
8/28/2024Transfer-Out1
8/28/2024Termination1

 

I'm having trouble uploading images but ultimately, I'll group New Hires & Transfer-Ins as "Joiners", and Terminations & Transfer-Outs as "Leavers". These counts will be displayed in two separate stacked bar charts (one for Joiners & one for Leavers) where the x-axis is Report Date, y-axis is count, and legend is Movement Type.

 

Is anyone able to help me with how I should go about doing this? Thank you in advance for your help!

2 REPLIES 2
lbendlin
Super User
Super User

Thanks for the referral!

 

This has helped with New Hires & Terminations as the logic follows the same as the article i.e. were they in the previous report (at all) and are they in this report (at all)?

 

However, I'm struggling with the Transfer-Ins & Transfer-Outs which don't care about you not being in the report, but rather care about the value in a specific field (i.e. Division) and whether or not that value changes week over week.

 

I suspect this logic should be very similar (and likely easier) but I'm struggling for whatever reason.

 

Thanks

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.