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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Rolling Employee Turnover by Fiscal Year

Hi all,

 

I'm trying to create a power bi report that monitors the organisations employee turnover rate. The Turnover calculation I'm using is below.

 

No of Leavers Divided by

 

(Headcount Start of Fiscal Period / Headcount End of Fiscal Period) / 2

 

I've enclosed a spreadsheet with 2 tabs that I hope will explain what I am trying to achieve.

 

Spreadsheet ==> https://drive.google.com/drive/folders/1znTXUDMOk4XminoH17c1Jt0spPnQWodC

 

Tab 1 - The sample of Data

Tab 2 - The desired output.

 

I hope someone can help

 

Thanks in advance.

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I've amended the link to the data and desire output. I hope the link now works.

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

I'm not so clear for your table structure to coding formula, can you please share some sample data? (your link seem not works)


Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Apoligies forgot to set the data sample to share, hopefully the below link will work;

 

https://drive.google.com/drive/folders/14bJJqeIeLiB-jNcyWIcdbpIdDCI92PQI?usp=sharing

 

 

 

Thanks

Anonymous
Not applicable

I've amended the link to the data and desire output. I hope the link now works.

Hi @Anonymous,

 

Please try to use following dax formulas to achieve your requirement:

Calculate table formula:

Output Summary =
SUMMARIZE (
    Data,
    Data[FiscalMonthFull],
    Data[YearMonth],
    "StartOfMonth", SUM ( Data[HeadcountStartofMonth] ),
    "EndofMonth", SUM ( Data[HeadCountEndofMonth] ),
    "Leavers", SUM ( Data[LeaverinMonth] )
)

Calculate column formula:
Monthly Turnover = DIVIDE([Leavers],([StartOfMonth]+[EndofMonth])/2,-1)

YTD Turnover =
CALCULATE (
    SUM ( 'Output Summary'[Monthly Turnover] ),
    FILTER (
        ALL ( 'Output Summary' ),
        YEAR ( [YearMonth] ) = YEAR ( EARLIER ( [YearMonth] ) )
            && [YearMonth] <= EARLIER ( [YearMonth] )
    )
)

19.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

I clicked the link and requested access.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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