Forum Discussion
Calculating monthly employees
- 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 )))
I fixed the error what I got when I tried to use it in a diagram, but the final result now is that I see how many people joined the company in what year/month.
So still don't have the active people on a monthly base.
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 )))