Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I have the data below.
Headcount = Running total Joining (From Oct to Sep next year) - Running total Leaving (From Oct to Sep next year)
Attrition - YTD is calculated from Oct to Sep next year.
Please help me to calculate Attrition - YTD on DAX.
You can use time intelligence
YTD Hire = CALCULATE(Count(Table[Employee]),DATESYTD('Date'[Date],"9/30")) //assume hire date is connecting
YTD Leaving = CALCULATE(CALCULATE(count(Table[Employee]),userelationship('Date'[Date], Table[Leave date]) ),DATESYTD('Date'[Date],"9/30"))
refer for more detailed steps
User | Count |
---|---|
51 | |
38 | |
20 | |
14 | |
13 |
User | Count |
---|---|
98 | |
71 | |
29 | |
18 | |
13 |