Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Dear all,
I want to determine the number of active employee per month, so I created the following DAX :
Solved! Go to Solution.
@Anonymous , Active employees are calculated from the beginning and you have active employees since 1951. So seem correct to me, Small change needed
Current Employees =
CALCULATE(COUNTx(FILTER('employee list','employee list'[Join Date]<=max('calendar'[Date]) && not(ISBLANK('employee list'[Join Date])) &&
(ISBLANK('employee list'[Leaving date]) ||
'employee list'[Leaving date]>max('Calendar'[Date]))),'employee list'[Personnel No.]),
CROSSFILTER('employee list'[Join Date],'Calendar'[Date],None))
Hired Employee =
CALCULATE
(COUNT('employee list'[Personnel No.]),
USERELATIONSHIP('employee list'[Join Date],'Calendar'[Date] ), not(ISBLANK('employee list'[Join Date])))
@Anonymous , Active employees are calculated from the beginning and you have active employees since 1951. So seem correct to me, Small change needed
Current Employees =
CALCULATE(COUNTx(FILTER('employee list','employee list'[Join Date]<=max('calendar'[Date]) && not(ISBLANK('employee list'[Join Date])) &&
(ISBLANK('employee list'[Leaving date]) ||
'employee list'[Leaving date]>max('Calendar'[Date]))),'employee list'[Personnel No.]),
CROSSFILTER('employee list'[Join Date],'Calendar'[Date],None))
Hired Employee =
CALCULATE
(COUNT('employee list'[Personnel No.]),
USERELATIONSHIP('employee list'[Join Date],'Calendar'[Date] ), not(ISBLANK('employee list'[Join Date])))
User | Count |
---|---|
9 | |
8 | |
5 | |
4 | |
3 |