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
StaceyG
Helper I
Helper I

Running headcount, current staff plus requisitions

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?

 

table screenshot.jpg

 

Thanks!

 

Stacey

1 ACCEPTED SOLUTION
DataInsights
Super User
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:

DataInsights_0-1615741488719.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
StaceyG
Helper I
Helper I

@DataInsights that worked!  Thank you

DataInsights
Super User
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:

DataInsights_0-1615741488719.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.