The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
32 | |
20 | |
17 | |
15 |
User | Count |
---|---|
53 | |
31 | |
30 | |
23 | |
21 |