DAX code
New Hires =
CALCULATE(
DISTINCTCOUNT('Employee'[EmployeeID]),
USERELATIONSHIP('Date'[Date], 'Employee'[HireDate])
)
Counts employees whose hire date falls within the current filter context.
Type your table and column names once. Every measure below updates.
New Hires =
CALCULATE(
DISTINCTCOUNT('Employee'[EmployeeID]),
USERELATIONSHIP('Date'[Date], 'Employee'[HireDate])
)
Requires an inactive relationship between the Date table and Employee[HireDate], activated here with USERELATIONSHIP.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to New Hires.