Forum Discussion
How to Calculate Active Employees based on Rolling Status
- 4 years ago
vengadesh_p , Create a date table and join on date with this table. Use date from date table in this visual
Try measures like
emp = count(Table[Employee])
Cumm Hire = CALCULATE([emp], FILTER(ALL('Date') , 'Date'[Date] <= max('Date'[Date])), [Status] ="IN")
Cumm Termination = CALCULATE([emp], FILTER(ALL('Date'), 'Date'[Date] <= Max('Date'[Date])), [Status] = "OUT")
Current Employee = [Cumm Hire] -[Cumm Termination]
vengadesh_p , Create a date table and join on date with this table. Use date from date table in this visual
Try measures like
emp = count(Table[Employee])
Cumm Hire = CALCULATE([emp], FILTER(ALL('Date') , 'Date'[Date] <= max('Date'[Date])), [Status] ="IN")
Cumm Termination = CALCULATE([emp], FILTER(ALL('Date'), 'Date'[Date] <= Max('Date'[Date])), [Status] = "OUT")
Current Employee = [Cumm Hire] -[Cumm Termination]