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.
Hello,
I have a requirement, where i need to calculate the headcount for the previous months using the current month total headcount, current month new hire and current month termination
Here is the calculation,
headcount(Sep) = Headcount(OCT) - new hire(OCT) + termination(OCT)
My existing table looks like
I have done a cumulative sum on Active headcount to get the latest month total headcount of that team(=496),
Here is the screen shot of what i need to achieve
Headcount(sep2022) = 496-2+4 => 498(Result)
Can someone help me on this!
Thank you
pls check if this is what you want
Column =
VAR _s=min('Table'[date])
VAR _s2=maxx(FILTER('Table','Table'[date]=_s),'Table'[active hc])
VAR _n=sumx(FILTER('Table','Table'[date]<=EARLIER('Table'[date])),'Table'[new hire])
VAR _t=sumx(FILTER('Table','Table'[date]<=EARLIER('Table'[date])),'Table'[termination])
return _s2+_n-_t
pls see the attachment below
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |