Forum Discussion

Schneider879's avatar
Schneider879
Frequent Visitor
7 years ago
Solved

Hires and Terminations Waterfall

Hello,   I'm hoping you all have some suggestions for how I could accomplish creating a creating a chart that will essentially count a hire as a +1 and a termination as a -1, giving me the net head...
  • Sean's avatar
    Sean
    7 years ago

    Using MFelix’s sample data shouldn’t you get 4 for July 2017?

    Try this Measure...

    Employee Count =
    CALCULATE (
        COUNT ( Table[Employee] ),
        FILTER (
            Table,
            Table[Start Date] <= LASTDATE ( DateTable[Date] )
                && (
                    Table[EndDate] >= FIRSTDATE ( DateTable[Date] )
                        || ISBLANK ( Table[EndDate] )
                )
        )
    )