Forum Discussion

Wiene24's avatar
Wiene24
Icon for Helper II rankHelper II
8 years ago
Solved

Calculating monthly employees

 Hi,   I would like to calculate the monthly active employees.   I have a colom with a startdate, I have a colom with an enddate (if they became inactive) and I need to use employee numbers under...
  • Wiene24's avatar
    Wiene24
    8 years ago

    It was eventualy fixed with the following formula:

     

    Aantal actieve medewerkers per maand =
    VAR currentDate =
        MAX ( Datumtabel[Date] )
    RETURN
        CALCULATE (
            COUNTROWS ( 'dba Medewerker' );
            FILTER (
                'dba Medewerker';
                ( 'dba Medewerker'[DatumInDienst] <= currentDate
                    && 'dba Medewerker'[Datumuitdienstnieuw] >= currentDate )))