Forum Discussion
Current Staff and Turnover Not working
I have a few tables of data.
Date: Date table with a date for each day of the year going back to 1900
Data Table: Employee number, Hire Date, Termination Date
Links: Hire Date and Termination Date are linked to the Date Table
I have 2 Measures:
Current Staff =
- Anonymous5 years ago
HI petermb72,
It seems like a common date fields analysis requirement, I'd like to suggest you take a look at the following link 'start date' 'end date' part if helps.
If above not help, please share some dummy data to test:
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
3 Replies
- AnonymousNot applicable
Please, do not try to re-invent the wheel. Read this: Calculate New, Returning, Lost, and Recovered Customers in #dax - SQLBI
Once you're on www.sqlbi.com use the Search facility to find what you need.
- petermb72
Helper IV
So, I found out if I delete the links to the date table the counts work correctly. Not sure why, but it does. I am going to carry on and see where this goes. Any insight on why removing the link to the date table makes a difference in the count?
- AnonymousNot applicable
HI petermb72,
It seems like a common date fields analysis requirement, I'd like to suggest you take a look at the following link 'start date' 'end date' part if helps.
If above not help, please share some dummy data to test:
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng