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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Hitumastert
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
1 REPLY 1
Jimmy801
Community Champion
Community Champion

Hello @Hitumastert 

 

i moved the post from Power Query to the DAX experts

 

BR

 

Jimmy

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.