Hi @tt.xavier welcome to the forum!
I’ve created a Date table with a FY year starting on July 1st and Marked that as a date table.
Created 2 inactive relationships between the Date table and the tData table.
See for more details around this and the limitations, please see:
Next Created the following measure:
Employee Count =
CALCULATE( COUNTROWS ( tData ),
FILTER(tData,
NOT( tData[Name] ) in {"Vacant"} &&
tData[StartDate] <= MAX('Date'[Date]) &&
tData[EndDate] >= MIN('Date'[Date])
)
)
With this result:
Now I noticed that this doesn’t match your results exactly but that’s because you didn’t seem to account for the FY starting on July 1st…
Here’s my sample file - I hope this was helpful.
eDNA - Resource Count.pbix (137.4 KB)