Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Headcount Calculation (Monthwise, quarterwise, yearwise)

Headcount report on POWER BI Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2024 450 434 424 432 433             ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

    Thank you for ExcelMonke answer , and I have other suggestions:

    Below is my table:

    It has employee columns, start date and end date and status columns for active or inactive.

    The following DAX might work for you:

    Measure = 
      CALCULATE(COUNT('Table'[Customer]),FILTER('Table','Table'[Flag] = "active"))

    The final output is shown in the following figure:

    Best Regards,

    Xianda Tang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.