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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors