mrmmickle1
Well-known Member
- Joined
- May 11, 2012
- Messages
- 2,461
I'm pretty new to PowerPivot and I have been reviewing a lot of material regarding DAX functions. I know that what I would like to do is possible. I'm just struggling with how to implement it. I'm trying to provide a dynamic Annualized Employee Turnover Pivot Table. Ideally I would be able to plug and play and see turnover within different population segments by just using measures and calculated fields.
The calculation method for annualized employee turnover is: (YTD Terminations / Average(Prior Year Headcount, Current Year Headcount)) / Quarter Month End*12
So for example these variables yield Annualized Turnover of 37.1% :
<tbody>
[TD="align: center"]6[/TD]
[TD="bgcolor: #0070C0"]Terms[/TD]
[TD="align: center"] 864[/TD]
[TD="align: center"]7[/TD]
[TD="bgcolor: #0070C0"]Prior Year HC[/TD]
[TD="align: center"] 9,339[/TD]
[TD="align: center"]8[/TD]
[TD="bgcolor: #0070C0"]Current Qtr HC[/TD]
[TD="align: center"] 9,277[/TD]
[TD="align: center"]9[/TD]
[TD="bgcolor: #0070C0"]Quarter Month End[/TD]
[TD="align: center"] 3[/TD]
</tbody>
The idea would be to take any of the green fields and drop them in the Rows of the Pivot Table and be able to get the turnover for that particular sub segment...
<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #0070C0"]YTD Terminations[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #0070C0"]Current Headcount[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #0070C0"]Last Year Headcount[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #0070C0"]Date[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #00B050"]Date[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] Year [/TD]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] Month [/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #000000"] Day [/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] WeekDayNr [/TD]
[TD="align: center"]7[/TD]
[TD="bgcolor: #C6EFCE"]Employee Level Down[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Organization Level Down[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Organization Level Dow n [/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] MonthNameShort [/TD]
[TD="align: center"] 8 [/TD]
[TD="align: right"]
[/TD]
[TD="align: right"]
[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] WeekDay [/TD]
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] Quarter [/TD]
[TD="align: center"]10[/TD]
[TD="bgcolor: #C6EFCE"]Employee Gender Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Gender Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Gender Description[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] YearMonth [/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #C6EFCE"]Sales Indicator[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Sales Indicator[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Sales Indicator[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] YearQuarter [/TD]
[TD="align: center"]12[/TD]
[TD="bgcolor: #C6EFCE"]Event Sub Group Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Event Sub Group Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Event Sub Group Description[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] IsWeekend [/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] DateKey [/TD]
[TD="align: center"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] YYYYMM [/TD]
[TD="align: center"]15[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] MonthStart [/TD]
[TD="align: center"]16[/TD]
[TD="bgcolor: #C6EFCE"]Generation[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Generation[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Generation[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] MonthEnd [/TD]
</tbody>
Data Looks like this:
2 Headcount tables (I can consolidate these if easier):
<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #0070C0"]Date[/TD]
[TD="bgcolor: #0070C0"]Quarter[/TD]
[TD="bgcolor: #0070C0"]Employee Name[/TD]
[TD="bgcolor: #0070C0"]Employee Number[/TD]
[TD="bgcolor: #0070C0"]Full Part Time Name[/TD]
[TD="bgcolor: #0070C0"]Employee Department[/TD]
[TD="bgcolor: #0070C0"]Employee Level Down[/TD]
[TD="bgcolor: #0070C0"]Pay Grade[/TD]
[TD="bgcolor: #0070C0"]Total Annual Base Salary USD[/TD]
[TD="bgcolor: #0070C0"]Employee Ethnic Group Description[/TD]
[TD="bgcolor: #0070C0"]Employee Gender Description[/TD]
[TD="bgcolor: #0070C0"]Sales Indicator[/TD]
[TD="bgcolor: #0070C0"]Performance Rating Description[/TD]
[TD="bgcolor: #0070C0"]Employee Location Country Name[/TD]
[TD="bgcolor: #0070C0"]Last Hire Date[/TD]
[TD="bgcolor: #0070C0"]Generation[/TD]
[TD="bgcolor: #0070C0"]Age Band[/TD]
[TD="bgcolor: #0070C0"]Tenure Band[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]$190,400.00[/TD]
[TD="align: right"]4/29/1997[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]$18,000.00[/TD]
[TD="align: right"]12/10/2001[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]$85,859.00[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]$80,000.00[/TD]
[TD="align: right"]9/20/2006[/TD]
</tbody>
<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #0070C0"]Term Effective Date[/TD]
[TD="bgcolor: #0070C0"]Quarter[/TD]
[TD="bgcolor: #0070C0"]Employee Name[/TD]
[TD="bgcolor: #0070C0"]Employee Number[/TD]
[TD="bgcolor: #0070C0"]Employee Department[/TD]
[TD="bgcolor: #0070C0"]Employee Level Down[/TD]
[TD="bgcolor: #0070C0"]Pay Grade[/TD]
[TD="bgcolor: #0070C0"]Employee Ethnic Group Description[/TD]
[TD="bgcolor: #0070C0"]Employee Gender Description[/TD]
[TD="bgcolor: #0070C0"]Sales Indicator[/TD]
[TD="bgcolor: #0070C0"]Event Sub Group Description[/TD]
[TD="bgcolor: #0070C0"]Total Annual Base Salary[/TD]
[TD="bgcolor: #0070C0"]Employee Location Country Name[/TD]
[TD="bgcolor: #0070C0"]Performance Rating Description[/TD]
[TD="bgcolor: #0070C0"]Generation[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]$103,000.00[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]$62,500.00[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]$61,650.00[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]$33,000.00[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]$34,000.00[/TD]
</tbody>
Date Table (In Power Pivot Model):
<tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Date[/TD]
[TD="align: center"]Year[/TD]
[TD="align: center"]Month[/TD]
[TD="align: center"]Day[/TD]
[TD="align: center"]WeekDayNr[/TD]
[TD="align: center"]MonthNameShort[/TD]
[TD="align: center"]WeekDay[/TD]
[TD="align: center"]Quarter[/TD]
[TD="align: center"]YearMonth[/TD]
[TD="align: center"]YearQuarter[/TD]
[TD="align: center"]IsWeekend[/TD]
[TD="align: center"]DateKey[/TD]
[TD="align: center"]YYYYMM[/TD]
[TD="align: center"]MonthStart[/TD]
[TD="align: center"]MonthEnd[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]FALSE[/TD]
[TD="align: right"]20160101[/TD]
[TD="align: right"]201601[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]1/31/2016 0:00[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]1/2/2016 0:00[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]TRUE[/TD]
[TD="align: right"]20160102[/TD]
[TD="align: right"]201601[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]1/31/2016 0:00[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]1/3/2016 0:00[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]TRUE[/TD]
[TD="align: right"]20160103[/TD]
[TD="align: right"]201601[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]1/31/2016 0:00[/TD]
</tbody>
Term Count:=COUNTA('YTD Terms'[Employee Name]) 'Employees can sometimes term twice in a given period so we don't want a distinct count
CY HC:=DISTINCTCOUNT('CY HC'[Employee Number])
LY HC:=DISTINCTCOUNT('LY HC'[Employee Number])
AVG HC:=([LY HC]+[CY HC])/2
Hierarchies:
Department > Level Down
Year > Quarter > Month > Day
*Note the CY Headcount Date field will always be the current end of quarter. This could be used to calculate the annualization. If the two tables were combined it would be the max date in this column...
Can someone please provide some guidance on how to calculate annualized turnover based on the above scenario. I reviewed some of the content on this BlogPost that looks like it's close to what I want to do, but was not sure how to change it to fit my needs: https://powerpivotpro.com/2013/04/c...a-time-period-guest-post-from-chris-campbell/
I have a sample file mocked up if that would be easier to work with. It can be found here: DROPBOX FILE LINK
The calculation method for annualized employee turnover is: (YTD Terminations / Average(Prior Year Headcount, Current Year Headcount)) / Quarter Month End*12
So for example these variables yield Annualized Turnover of 37.1% :
B | C | |
---|---|---|
<tbody>
[TD="align: center"]6[/TD]
[TD="bgcolor: #0070C0"]Terms[/TD]
[TD="align: center"] 864[/TD]
[TD="align: center"]7[/TD]
[TD="bgcolor: #0070C0"]Prior Year HC[/TD]
[TD="align: center"] 9,339[/TD]
[TD="align: center"]8[/TD]
[TD="bgcolor: #0070C0"]Current Qtr HC[/TD]
[TD="align: center"] 9,277[/TD]
[TD="align: center"]9[/TD]
[TD="bgcolor: #0070C0"]Quarter Month End[/TD]
[TD="align: center"] 3[/TD]
</tbody>
Sheet1
My data looks like this (4 Tables):The idea would be to take any of the green fields and drop them in the Rows of the Pivot Table and be able to get the turnover for that particular sub segment...
G | H | I | J | K | L | M | |
---|---|---|---|---|---|---|---|
Term Effective Date | Term Effective Date | Term Effective Date | |||||
Quarter | Quarter | Quarter | |||||
Employee Name | Employee Name | Employee Name | |||||
Employee Number | Employee Number | Employee Number | |||||
Employee Department | Employee Organization Department | Employee Organization Department | |||||
Pay Grade | Pay Grade | Pay Grade | |||||
Employee Ethnic Group Description | Employee Ethnic Group Description | Employee Ethnic Group Description | |||||
Total Annual Base Salary | Total Annual Base Salary | Total Annual Base Salary | |||||
Employee Location Country Name | Employee Location Country Name | Employee Location Country Name | |||||
Performance Rating Description | Performance Rating Description | Performance Rating Description | |||||
<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #0070C0"]YTD Terminations[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #0070C0"]Current Headcount[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #0070C0"]Last Year Headcount[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #0070C0"]Date[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #00B050"]Date[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] Year [/TD]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] Month [/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #000000"] Day [/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] WeekDayNr [/TD]
[TD="align: center"]7[/TD]
[TD="bgcolor: #C6EFCE"]Employee Level Down[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Organization Level Down[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Organization Level Dow n [/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] MonthNameShort [/TD]
[TD="align: center"] 8 [/TD]
[TD="align: right"]
[/TD]
[TD="align: right"]
[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] WeekDay [/TD]
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] Quarter [/TD]
[TD="align: center"]10[/TD]
[TD="bgcolor: #C6EFCE"]Employee Gender Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Gender Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Employee Gender Description[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] YearMonth [/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #C6EFCE"]Sales Indicator[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Sales Indicator[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Sales Indicator[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] YearQuarter [/TD]
[TD="align: center"]12[/TD]
[TD="bgcolor: #C6EFCE"]Event Sub Group Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Event Sub Group Description[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Event Sub Group Description[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] IsWeekend [/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] DateKey [/TD]
[TD="align: center"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] YYYYMM [/TD]
[TD="align: center"]15[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] MonthStart [/TD]
[TD="align: center"]16[/TD]
[TD="bgcolor: #C6EFCE"]Generation[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Generation[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6EFCE"]Generation[/TD]
[TD="align: right"]
[/TD]
[TD="bgcolor: #000000"] MonthEnd [/TD]
</tbody>
Mapping
The Date table was made by using these suggestions:https://kohera.be/blog/business-int...te-table-in-powerpivot-with-one-single-value/Data Looks like this:
2 Headcount tables (I can consolidate these if easier):
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6/30/2017 | 2017 Q 2 | EE 1 | Full-Time | ASD | Southeast Region | Grade 10 | White | Male | NON-SALES | Meets Most Expectations | United States | Generation X | 40-49 years | >=10 years | ||||
6/30/2017 | 2017 Q 2 | EE 2 | Full-Time | ASD | West Region | Grade 5 | Asian | Male | SALES | Not Rated | United States | Baby Boomers | 50-59 years | >=10 years | ||||
6/30/2017 | 2017 Q 2 | EE 3 | Full-Time | ASD | West Region | Grade 6 | Hispanic or Latino | Male | NON-SALES | Exceeds Expectations | United States | Generation X | 50-59 years | >=10 years | ||||
6/30/2017 | 2017 Q 2 | EE 4 | Full-Time | ASD | Northwest Region | Grade 6 | Black or African American | Male | NON-SALES | Exceeds Expectations | United States | Generation X | 40-49 years | >=10 years |
<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #0070C0"]Date[/TD]
[TD="bgcolor: #0070C0"]Quarter[/TD]
[TD="bgcolor: #0070C0"]Employee Name[/TD]
[TD="bgcolor: #0070C0"]Employee Number[/TD]
[TD="bgcolor: #0070C0"]Full Part Time Name[/TD]
[TD="bgcolor: #0070C0"]Employee Department[/TD]
[TD="bgcolor: #0070C0"]Employee Level Down[/TD]
[TD="bgcolor: #0070C0"]Pay Grade[/TD]
[TD="bgcolor: #0070C0"]Total Annual Base Salary USD[/TD]
[TD="bgcolor: #0070C0"]Employee Ethnic Group Description[/TD]
[TD="bgcolor: #0070C0"]Employee Gender Description[/TD]
[TD="bgcolor: #0070C0"]Sales Indicator[/TD]
[TD="bgcolor: #0070C0"]Performance Rating Description[/TD]
[TD="bgcolor: #0070C0"]Employee Location Country Name[/TD]
[TD="bgcolor: #0070C0"]Last Hire Date[/TD]
[TD="bgcolor: #0070C0"]Generation[/TD]
[TD="bgcolor: #0070C0"]Age Band[/TD]
[TD="bgcolor: #0070C0"]Tenure Band[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]$190,400.00[/TD]
[TD="align: right"]4/29/1997[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]$18,000.00[/TD]
[TD="align: right"]12/10/2001[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]$85,859.00[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]$80,000.00[/TD]
[TD="align: right"]9/20/2006[/TD]
</tbody>
Current /Last Year Headcount
Terms Table:A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1/11/2017 | 2017 Q 1 | EE 20 | ASD | West Region | White | Male | NON-SALES | Involuntary Termination | United States | Not Good | Generation X | ||||
5/20/2017 | 2017 Q 2 | EE 8 | ASD | South Region | White | Female | NON-SALES | Voluntary Termination | United States | OK | Generation X | ||||
4/20/2017 | 2017 Q 2 | EE 36 | ASD | South Region | Black or African American | Female | NON-SALES | Involuntary Termination | United States | Not Good | Generation X | ||||
3/21/2017 | 2017 Q 1 | EE 25 | ASD | South Region | White | Female | NON-SALES | Voluntary Termination | United States | Not Good | Generation X | ||||
6/24/2017 | 2017 Q 2 | EE 32 | ASD | South Region | White | Female | NON-SALES | Voluntary Termination | United States | Not Rated | Generation X |
<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #0070C0"]Term Effective Date[/TD]
[TD="bgcolor: #0070C0"]Quarter[/TD]
[TD="bgcolor: #0070C0"]Employee Name[/TD]
[TD="bgcolor: #0070C0"]Employee Number[/TD]
[TD="bgcolor: #0070C0"]Employee Department[/TD]
[TD="bgcolor: #0070C0"]Employee Level Down[/TD]
[TD="bgcolor: #0070C0"]Pay Grade[/TD]
[TD="bgcolor: #0070C0"]Employee Ethnic Group Description[/TD]
[TD="bgcolor: #0070C0"]Employee Gender Description[/TD]
[TD="bgcolor: #0070C0"]Sales Indicator[/TD]
[TD="bgcolor: #0070C0"]Event Sub Group Description[/TD]
[TD="bgcolor: #0070C0"]Total Annual Base Salary[/TD]
[TD="bgcolor: #0070C0"]Employee Location Country Name[/TD]
[TD="bgcolor: #0070C0"]Performance Rating Description[/TD]
[TD="bgcolor: #0070C0"]Generation[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]$103,000.00[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]$62,500.00[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]$61,650.00[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]$33,000.00[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]$34,000.00[/TD]
</tbody>
YTD Terminations
Date Table (In Power Pivot Model):
P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jan | Fri | Q 1 | 2016 Jan | 2016 Q 1 | |||||||||||
Jan | Sat | Q 1 | 2016 Jan | 2016 Q 1 | |||||||||||
Jan | Sun | Q 1 | 2016 Jan | 2016 Q 1 |
<tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Date[/TD]
[TD="align: center"]Year[/TD]
[TD="align: center"]Month[/TD]
[TD="align: center"]Day[/TD]
[TD="align: center"]WeekDayNr[/TD]
[TD="align: center"]MonthNameShort[/TD]
[TD="align: center"]WeekDay[/TD]
[TD="align: center"]Quarter[/TD]
[TD="align: center"]YearMonth[/TD]
[TD="align: center"]YearQuarter[/TD]
[TD="align: center"]IsWeekend[/TD]
[TD="align: center"]DateKey[/TD]
[TD="align: center"]YYYYMM[/TD]
[TD="align: center"]MonthStart[/TD]
[TD="align: center"]MonthEnd[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]FALSE[/TD]
[TD="align: right"]20160101[/TD]
[TD="align: right"]201601[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]1/31/2016 0:00[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]1/2/2016 0:00[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]TRUE[/TD]
[TD="align: right"]20160102[/TD]
[TD="align: right"]201601[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]1/31/2016 0:00[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]1/3/2016 0:00[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]TRUE[/TD]
[TD="align: right"]20160103[/TD]
[TD="align: right"]201601[/TD]
[TD="align: right"]1/1/2016 0:00[/TD]
[TD="align: right"]1/31/2016 0:00[/TD]
</tbody>
Mapping
Current Measures (Not sure if these are what I need...):Term Count:=COUNTA('YTD Terms'[Employee Name]) 'Employees can sometimes term twice in a given period so we don't want a distinct count
CY HC:=DISTINCTCOUNT('CY HC'[Employee Number])
LY HC:=DISTINCTCOUNT('LY HC'[Employee Number])
AVG HC:=([LY HC]+[CY HC])/2
Hierarchies:
Department > Level Down
Year > Quarter > Month > Day
*Note the CY Headcount Date field will always be the current end of quarter. This could be used to calculate the annualization. If the two tables were combined it would be the max date in this column...
Can someone please provide some guidance on how to calculate annualized turnover based on the above scenario. I reviewed some of the content on this BlogPost that looks like it's close to what I want to do, but was not sure how to change it to fit my needs: https://powerpivotpro.com/2013/04/c...a-time-period-guest-post-from-chris-campbell/
I have a sample file mocked up if that would be easier to work with. It can be found here: DROPBOX FILE LINK
Last edited: