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.
I am trying to create a bar chart showing quarterly headcount projections. I have a table which combines both curent staff and open requisitions. I have the hire date for current staff and the target hire date for requisitions in the same [Hire Date] field. I also have a designation on each row of "Budgeted" or "Not Budgeted" in the [Budget Status] column. I'm struggling with how to get a running total of projected staff for each quarter. It should be current staff plus requisitions where the [Hire Date] is <= quarter end (3/31/21, 6/30/21, 9/30/21, 12/31/21). Would any of you geniuses be able to help me with this?
Thanks!
Stacey
Solved! Go to Solution.
Hi @StaceyG,
Try this measure:
Running Headcount =
CALCULATE (
SUM ( Headcount[Count] ),
FILTER (
ALLSELECTED ( Headcount ),
Headcount[Hire Date] <= MAX ( Headcount[Hire Date] )
)
)
Sample data:
Proud to be a Super User!
Hi @StaceyG,
Try this measure:
Running Headcount =
CALCULATE (
SUM ( Headcount[Count] ),
FILTER (
ALLSELECTED ( Headcount ),
Headcount[Hire Date] <= MAX ( Headcount[Hire Date] )
)
)
Sample data:
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 |
---|---|
100 | |
99 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |