Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

calculate Average Head count & Attrition in Power Query in excel

Hi Team


Please help me out calculate Average Head count & Attrition in Power Query in excel.  File Attached.

HeadingDiscretionFX Formula
JoinersCountsPer month JoinerCALCULATE(COUNTROWS(Joiners))
leaversCountsPer month LeaversCALCULATE(COUNTROWS(Leavers))
Active Head CountNet ChangeCALCULATE([JoinersCounts]-[leaversCounts],FILTER(ALLSELECTED('Date'[Date]),ISONORAFTER('Date'[Date],MAX('Date'[Date]),DESC)))
YTD_JoinersYear star date till month JoinersCountsCALCULATE([JoinersCounts],DATESYTD('Date'[Date],"31/12"))
YTD_LeaversYear star date till month leaversCountsCALCULATE([leaversCounts],DATESYTD('Date'[Date],"31/12"))
YTD Avg HCAvg of Year till of Active Active Head CountCan you please how to count Average of Active Head count
12 month Hires12 month HiresCALCULATE([Hires],DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))
12 month Exits12 month ExitsCALCULATE([Exits],DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))
12 month Avg HCAvg of last 12 month Active Active Head CountCan you please how to count 12 month Average of Active Head count
Monthnumric Month NoNo of month / Quarter
Monthly Attrition (YTD_Leavers/YTD Avg HC*12)/MonthCan you please how to count Monthly Attrition
Super User III
Super User III

Hello @Hitumastert 


i moved the post from Power Query to the DAX experts





Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors