You are building a Power BI report for the HR department to analyze employee turnover. You have an Employee table with columns: EmployeeID, Name, Department, HireDate, TerminationDate (nullable). The report must include a measure that calculates the number of active employees as of the last day of each month. The data model also includes a Calendar table with a continuous date range. The measure must be accurate regardless of any slicer selections on the Calendar table. You need to write the DAX measure. Which measure should you use?
Correctly counts employees active as of the last day of the month.
Why this answer
Option B is correct because it uses a pattern that calculates employees hired on or before the last date of the month and terminated after that date or still active (TerminationDate is blank). The use of MAX('Calendar'[Date]) ensures it respects the current filter context for the month, and the logic correctly counts active employees. Option A is wrong because it uses MIN instead of MAX, and the logic is reversed.
Option C is wrong because it uses a fixed date. Option D is wrong because it sums an expression incorrectly.